Closed barakman closed 6 years ago
Yes, I made that change in decimal.js.
Your preference is noted.
@MikeMcl:
Alternatively, you could change this:
? [n1.toString(), d1.toString()]
: [n0.toString(), d0.toString()];
To this:
? [n1.toFixed(), d1.toFixed()]
: [n0.toFixed(), d0.toFixed()];
I think that will ensure returning a pair of integer-representing strings.
Yes, good idea. I will consider it.
From v8.0.0, toFraction
returns [BigNumber, BigNumber]
.
Thanks for your input.
Example:
It might be better to have this function returning
[BigNumber, BigNumber]
instead of[string, string]
.Version tested: 7.2.1.