Socket
Socket
Sign inDemoInstall

decimal.js

Package Overview
Dependencies
0
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous12356Next

5.0.7

Diff

Changelog

Source

5.0.7

  • 29/02/2016
  • Add decimal.js-light link
  • Remove outdated example from docs
mikemcl
published 5.0.5 •

Changelog

Source

5.0.5

  • 20/02/2016
  • Bugfix: #26 wrong precision applied
mikemcl
published 5.0.6 •

Changelog

Source

5.0.6

  • 22/02/2016
  • Add bower.json
mikemcl
published 4.0.4 •

mikemcl
published 5.0.4 •

Changelog

Source

5.0.4

  • 14/02/2016
  • Bugfix: #26 clone
mikemcl
published 5.0.3 •

Changelog

Source

5.0.3

  • 06/02/2016
  • Refactor tests
mikemcl
published 5.0.2 •

Changelog

Source

5.0.2

  • 05/02/2016
  • Added immutability tests
  • Minor decimal.js clean-up
mikemcl
published 5.0.1 •

Changelog

Source

5.0.1

  • 28/01/2016
  • Bugfix: #20 cos mutates value
  • Add pi info to docs
mikemcl
published 5.0.0 •

Changelog

Source

5.0.0

  • 25/01/2016
  • Added trigonometric functions and cubeRoot method
  • Added most of JavaScript's Math object methods as Decimal methods
  • Added toBinary, toHexadecimal and toOctal methods
  • Added isPositive method
  • Removed the 15 significant digit limit for numbers
  • toFraction now returns an array of two Decimals, not two strings
  • String values containing whitespace or a plus sign are no longer accepted
  • valueOf now returns '-0' for minus zero
  • comparedTo now returns NaN not null for comparisons with NaN
  • Decimal.max and Decimal.min no longer accept an array
  • The Decimal constructor and toString no longer accept a base argument
  • Binary, hexadecimal and octal prefixes are now recognised for string values
  • Removed Decimal.errors configuration property
  • Removed toFormat method
  • Removed Decimal.ONE
  • Renamed exponential method to naturalExponential
  • Renamed Decimal.constructor method to Decimal.clone
  • Simplified error handling and amended error messages
  • Refactored the test suite
  • Decimal.crypto is now undefined by default, and the crypto object will be used if available
  • Major internal refactoring
  • Removed bower.json
mikemcl
published 4.0.3 •

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc