vlsd/MathPrintF — Issue #5: Rounding error
Author: uranix
Created: 2012-01-20 15:11:37+00:00
State: open

Hello.

Some numbers get incorrectly rounded:

printf["%.2f", 9.87]
9.86

RealDigits return {{9, 8, 6, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9}, 1} for 9.87 on my PC, so I believe it's a truncation problem.