- Fix incorrect signs at tan() approximation and precision errors at sin()
- Add modular exponentiation -
powm()
- Do not expose
trimTrailingZeros()
anymore. Zero trimming is still available through the third parameter at toFixed(), toExponential() and toPrecision() - Radian angles handled more precisely. Trigonometric functions now provide exact results for expressions like
sin(PI/6)=0.5
- Not using BigInt literals anymore, because they are not compatible with some FE frameworks
- Performance improvements by memoizing common BigInt values
- Fixed bug with zeros not being trimmed corectly
- Faster rounding and more reliable normalization of fractions
- ExactNumber.gcd() and ExactNumber.lcm()
- Limit precision of input binaries at approximations
- Support for negative powers without approximation
- Rewritten approximation functions. API returns ExactNumber object instead of strings
- Add ExactNumber.range(start, end, increment) helper function
- Update dependencies
- Fix trimming of trailing zeros
- Add more approximations:
tanh()
,asinh()
,acosh()
,atanh()
- Fix toNumber() bug with large fractions
- Fix roots of large numbers
- Update dependencies