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

bignumber.js

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bignumber.js - npm Package Versions

1
46

2.0.3

Diff

Changelog

Source

2.0.3

  • 18/02/2015
  • Amend README. Add source map.
mikemcl
published 2.0.2 •

Changelog

Source

2.0.2

  • 18/02/2015
  • Correct links.
mikemcl
published 2.0.1 •

Changelog

Source

2.0.1

  • 18/02/2015
  • Add max, min, precision, random, shiftedBy, toDigits and truncated methods.
  • Add the short-forms: add, mul, sd, sub and trunc.
  • Add an another method to enable multiple independent constructors to be created.
  • Add support for the base 2, 8 and 16 prefixes 0b, 0o and 0x.
  • Enable a rounding mode to be specified as a second parameter to toExponential, toFixed, toFormat and toPrecision.
  • Add a CRYPTO configuration property so cryptographically-secure pseudo-random number generation can be specified.
  • Add a MODULO_MODE configuration property to enable the rounding mode used by the modulo operation to be specified.
  • Add a POW_PRECISION configuration property to enable the number of significant digits calculated by the power operation to be limited.
  • Improve code quality.
  • Improve documentation.
mikemcl
published 2.0.0 •

Changelog

Source

2.0.0

  • 29/12/2014
  • Add dividedToIntegerBy, isInteger and toFormat methods.
  • Remove the following short-forms: isF, isZ, toE, toF, toFr, toN, toP, toS.
  • Store a BigNumber's coefficient in base 1e14, rather than base 10.
  • Add fast path for integers to BigNumber constructor.
  • Incorporate the library into the online documentation.
mikemcl
published 1.5.0 •

Changelog

Source

1.5.0

  • 13/11/2014
  • Add toJSON and decimalPlaces methods.
mikemcl
published 1.4.1 •

Changelog

Source

1.4.1

  • 08/06/2014
  • Amend README.
mikemcl
published 1.4.0 •

Changelog

Source

1.4.0

  • 08/05/2014
  • Add toNumber.
mikemcl
published 1.3.0 •

Changelog

Source

1.3.0

  • 08/11/2013
  • Ensure correct rounding of sqrt in all, rather than almost all, cases.
  • Maximum radix to 64.
mikemcl
published 1.2.1 •

Changelog

Source

1.2.1

  • 17/10/2013
  • Sign of zero when x < 0 and x + (-x) = 0.
mikemcl
published 1.2.0 •

Changelog

Source

1.2.0

  • 19/9/2013
  • Throw Error objects for stack.
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