🌐
npm
npmjs.com › package › decimal.js
decimal.js - npm
An arbitrary-precision Decimal type for JavaScript.. Latest version: 10.6.0, last published: 8 months ago. Start using decimal.js in your project by running `npm i decimal.js`. There are 3696 other projects in the npm registry using decimal.js.
      » 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 › search
decimal - npm search
A tiny, safe, fast JavaScript library for decimal arithmetic expressions.
🌐
npm
npmjs.com › ~mikemcl
npm | Profile
A decimal.js extension for the evaluation of arithmetic expressions
🌐
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
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
🌐
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.
<script src='path/to/decimal.js-light'></script> Node package manager: $ npm install --save decimal.js-light ·
Starred by 405 users
Forked by 49 users
Languages   JavaScript 99.8% | HTML 0.2%
🌐
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
Find elsewhere
🌐
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
🌐
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 › search
keywords:decimal - npm search
An arbitrary-precision Decimal type for JavaScript.
🌐
npm
npmjs.com › package › is-decimal
is-decimal - npm
Check if a character is decimal. Latest version: 2.0.1, last published: 4 years ago. Start using is-decimal in your project by running `npm i is-decimal`. There are 64 other projects in the npm registry using is-decimal.
      » npm install is-decimal
    
Published   Nov 04, 2021
Version   2.0.1
Author   Titus Wormer
🌐
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
🌐
Npm
npm.io › search › keyword:decimal
Decimal | npm.io
An arbitrary-precision Decimal type for JavaScript.