3 ms·
In Haskell you'd use Fixed (https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-Fixed.html https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-.
by wereHamster 9y ago
In Haskell you'd use Fixed (https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-Fixed.html https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-...) with your desired precision (E2 for most currencies). It's in base, so no third-party libraries are required.