3 ms·
It deals with floating-point, arbitrary-precision decimal numbers, whereas math/big contains support for arbitrary-precision integers, rationals and binary floa
by friday99 9y ago
It deals with floating-point, arbitrary-precision decimal numbers, whereas math/big contains support for arbitrary-precision integers, rationals and binary floating point. Looking at it briefly, it looks like it uses math/big under the hood when the numbers are large, but uses an internal compact form for efficiency when numbers are small ~<= 20 decimal digits.
- barsonme 9y agoYep! That’s what it does. Hopefully I can get it moved over to BCD which will drop basic arithmetic performance, but more than make up for it when faster rounding. :-)