3 ms·
0.1 is perfectly representable "on a computer", just not in binary floating point.
by drv 16y ago
0.1 is perfectly representable "on a computer", just not in binary floating point.
- eru 16y agoSee e.g. Haskell's Data.Ratio (http://haskell.org/ghc/docs/6.12.1/html/libraries/base-4.2.0.0/Data-Ratio.html http://haskell.org/ghc/docs/6.12.1/html/libraries/base-4.2.0...) module for rational numbers.