Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exactnumber

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exactnumber - npm Package Versions

2

1.0.4

Diff

Changelog

Source

1.0.4 (September 30, 2024)

  • Fix Typescript types path
  • Update dependencies
daninet
published 1.0.3 •

Changelog

Source

1.0.3 (August 09, 2024)

  • Fixed bug with invalid rounding at some fractional values
  • Added isNegative()
  • Added ExactNumber.isExactNumber()
  • Updating dependencies
daninet
published 1.0.2 •

Changelog

Source

1.0.2 (July 07, 2024)

  • Fix bug at fraction's toExponential()
daninet
published 1.0.1 •

Changelog

Source

1.0.1 (November 05, 2022)

  • Fix incorrect signs at tan() approximation and precision errors at sin()
daninet
published 1.0.0 •

Changelog

Source

1.0.0 (November 05, 2022)

  • 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
daninet
published 0.11.0 •

Changelog

Source

0.11.0 (October 29, 2022)

  • Faster rounding and more reliable normalization of fractions
  • ExactNumber.gcd() and ExactNumber.lcm()
  • Limit precision of input binaries at approximations
daninet
published 0.10.0 •

Changelog

Source

0.10.0 (October 23, 2022)

  • 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
daninet
published 0.9.1 •

Changelog

Source

0.9.1 (October 15, 2022)

  • Fix trimming of trailing zeros
daninet
published 0.9.0 •

Changelog

Source

0.9.0 (September 30, 2022)

  • Add more approximations: tanh(), asinh(), acosh(), atanh()
  • Fix toNumber() bug with large fractions
  • Fix roots of large numbers
  • Update dependencies
daninet
published 0.8.1 •

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc