Advertise here

NEW  Video tutorials for jQuery and Javascript are now on Videos page.

decimal.js – Arbitrary Precision Decimal Type for JavaScript

December 14, 2014     621     Others
decimal.js – Arbitrary Precision Decimal Type for JavaScript

decimal.js is an arbitrary-precision Decimal type for JavaScript.


  • Faster, smaller, and perhaps easier to use than JavaScript versions of Java's BigDecimal
  • Simple API but full-featured
  • Replicates the toExponential, toFixed, toPrecision and toString methods of JavaScript's Number type
  • Includes a toFraction and correctly-rounded exp, ln, log and sqrt functions
  • Supports non-integer powers
  • Works with numbers with or without fraction digits in bases from 2 to 64 inclusive
  • Wide platform compatibility: uses JavaScript 1.5 (ECMAScript 3) features only

Related Plugins

Latest Plugins

Subscribe to Newsletter

Subscribe to email newsletter for latest jQuery plugins & tutorials.


AdvertisementAdvertise with us!
Angular, React and Javascript MV* Frameworks | MVish