Hacker News new | ask | show | jobs
by mey 2002 days ago
Conceptually you are attempting to display something that has more precision than you are willing to display.

You can

   - Round (Truncation is a type of rounding, Rounding towards zero)
   - Adjust the display to increase the precision it displays
   - Do both by dynamically increasing the precision of the display/decreasing rounding as the distance to zero closes in.