Confusion in "Floating Point Types"

Issue #20 resolved
Richard Palme created an issue

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)

  1. Log in to comment