We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First off thanks for having this repo, it's definitely great to look at someone else's implementations of the exercises.
I believe for the last expression in Chapter 13 Exercise 3, the final type is a double, not a float. I think the conversions take place in this order:
l
double
i/l
i
l +0.2
I checked with the order Kochan listed, but I could be wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
First off thanks for having this repo, it's definitely great to look at someone else's implementations of the exercises.
I believe for the last expression in Chapter 13 Exercise 3, the final type is a double, not a float.
I think the conversions take place in this order:
l
is casted to adouble
since the cast operator takes precedence over the operations.i/l
results ini
converting to andouble
and that makes the result '0.2' as a double.l +0.2
results inl
converting to adouble
and that makes the result '500.2' as a double.I checked with the order Kochan listed, but I could be wrong?
The text was updated successfully, but these errors were encountered: