toStringWithPrecision() uses toDouble() to first create a double type of the object. This means that very large numbers can be represented incorrectly using this method.
It should be possible to create a fully correct fixed-precision string using the internal numerator and denominator.
toStringWithPrecision()
usestoDouble()
to first create adouble
type of the object. This means that very large numbers can be represented incorrectly using this method.It should be possible to create a fully correct fixed-precision string using the internal numerator and denominator.