🌐
npm
npmjs.com › package › decimal.js
decimal.js - npm
An arbitrary-precision Decimal type for JavaScript. ... The library is similar to bignumber.js, but here precision is specified in terms of significant digits rather than decimal places, and all calculations are rounded to the precision (similar ...
      » npm install decimal.js
    
Published   Jul 06, 2025
Version   10.6.0
Author   Michael Mclaughlin
🌐
npm
npmjs.com › package › decimal.js-light
decimal.js-light - npm
The light version of decimal.js, an arbitrary-precision Decimal type for JavaScript.
      » npm install decimal.js-light
    
Published   Sep 30, 2020
Version   2.5.1
Author   Michael Mclaughlin
🌐
Mikemcl
mikemcl.github.io › decimal.js
decimal.js API
An arbitrary-precision Decimal type for JavaScript.
🌐
npm
npmjs.com › ~mikemcl
npm | Profile
An arbitrary-precision Decimal type for JavaScript.
🌐
npm
npmjs.com › search
decimal - npm search
A tiny, safe, fast JavaScript library for decimal arithmetic expressions.
🌐
GitHub
github.com › MikeMcl › decimal.js
GitHub - MikeMcl/decimal.js: An arbitrary-precision Decimal type for JavaScript · GitHub
Using uglify-js to minify the decimal.js file: npm install uglify-js -g uglifyjs decimal.js --source-map url=decimal.min.js.map -c -m -o decimal.min.js · Using terser to minify the ES module version, decimal.mjs: npm install terser -g terser decimal.mjs --source-map url=decimal.min.mjs.map -c -m --toplevel -o decimal.min.mjs ·
Author   MikeMcl
🌐
npm
npmjs.com › package › decimal
decimal - npm
Simple decimal arithmetic for the browser and node.js!. Latest version: 0.0.2, last published: 14 years ago. Start using decimal in your project by running `npm i decimal`. There are 21 other projects in the npm registry using decimal.
      » npm install decimal
    
Published   Dec 25, 2011
Version   0.0.2
Author   Samori Gorse
🌐
GitHub
github.com › MikeMcl › decimal.js-light
GitHub - MikeMcl/decimal.js-light: The light version of decimal.js, an arbitrary-precision Decimal type for JavaScript. · GitHub
<script src='path/to/decimal.js-light'></script> Node package manager: $ npm install --save decimal.js-light ·
Author   MikeMcl
Find elsewhere
🌐
GitHub
github.com › Agrora › decimal-js
GitHub - Agrora/decimal-js: DecimalJS is an arbitrary precision floating point arithmetic library based on PHP's bcmath extension.
Requires: npm · // Pull project git clone https://github.com/Agrora/decimal-js // Enter project directory cd decimal-js // Install development dependencies npm install // ... make your changes ... // Run tests npm run test // Lint npm run lint // Fix linting problems npm run lint:fix // Build npm run build // ...
Author   Agrora
🌐
GitHub
github.com › shinuza › decimal-js
GitHub - shinuza/decimal-js: Simple decimal arithmetic for the browser and node.js!
<script src="lib/decimal.js"></script> npm install decimal · then in your program ·
Starred by 56 users
Forked by 23 users
Languages   JavaScript 98.5% | Makefile 1.5%
🌐
npm
npmjs.com › package › decimal-format
decimal-format - npm
import DecimalFormat from 'decimal-format'; const df = new DecimalFormat('#,##0.0#'); df.format(1234.995); // 1,235.0 df.format(1234.956); // 1,234.96 const df1 = new DecimalFormat('#,##0.0#%'); df1.format(0.34995); // 35.0% const df2 = new DecimalFormat('#,##0.0#‰'); df2.format(0.034993); // 34.99‰ const df3 = new DecimalFormat('¥#,##0.00元'); df3.format(1234.995); // ¥1,235.00元 const df4 = new DecimalFormat('0.00E'); df4.format(1234); // 1.23E3 const df5 = new DecimalFormat('0.00E+'); df5.format(1234); // 1.23E+3
      » npm install decimal-format
    
Published   Aug 28, 2025
Version   4.1.1
🌐
npm
npmjs.com › package › js-big-decimal
js-big-decimal - npm
It supports exponentiation, but only with integral exponent. var n1 = new bigDecimal(12.6789); var n2 = new bigDecimal("12345.6789"); var n3 = new bigDecimal('12.456e3'); // 12456 · Returns the string value of the decimal.
      » npm install js-big-decimal
    
Published   Dec 29, 2024
Version   2.2.0
🌐
Snyk
snyk.io › advisor › decimal › functions › decimal.js.decimal
How to use the decimal.js.Decimal function in decimal | Snyk
static fromCoins = (amount, currency) => { currency = currency || {}; if (currency.precision === undefined) throw new Error('A valid currency must be provided'); if (amount instanceof BigNumber) amount = amount.toString(); amount = new Decimal(amount); amount = amount.div(Math.pow(10, currency.precision)); return new Money(amount, currency); }; wavesplatform / WavesExplorerLite / src / js / shared / OrderPrice.js View on Github
🌐
jsDelivr
jsdelivr.com › package › npm › decimal
decimal CDN by jsDelivr - A CDN for npm and GitHub
December 25, 2011 - A free, fast, and reliable CDN for decimal. Simple decimal arithmetic for the browser and node.js!
Published   Dec 25, 2011
🌐
Npm
npm.io › search › keyword:decimal
Decimal | npm.io
An arbitrary-precision Decimal type for JavaScript.