Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels