Comment Re:It's nothing, Shroedinger's logarithm beats tha (Score 1) 92
Uh, isn't that technically correct behavior?
if your display can only display n digits but you have n digits of 9 and the n+1 digit is higher than 5 it should round up the entire line. However trunc does not care about what is being displayed so it should simply drop the fractional.
in other words if n (number of digits after the decimal displayed) is 3 and internally the number stored is 2.99999 then the display should display 3.000 but trunc() should display 2.000