- edited description
Confusion in "Floating Point Types"
Issue #20
resolved
In the chapter "Floating Point Types", there is a program that outputs lines like these:
Precision : 15
Minimum normalized value: 2.22507e-308
The confusing thing here is that writeln cuts off the precision of the numbers. So it says "precision: 15" but only shows 6 digits of precision. I think it's best to just mention the fact that the precision got cut off. Another alternative would be to output the numbers with more precision, but that might not didactically be the best route to take (would require writefln etc.)
Comments (2)
-
reporter -
repo owner - changed status to resolved
Fixes issue 20. writeln prints all floating point types with 6 digit precision.
→ <<cset bd45e41d51c8>>
- Log in to comment