js-big-decimal
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "js-big-decimal", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Work with large numbers on the client side. Round them off to any required precission.", | ||
@@ -52,2 +52,3 @@ "main": "dist/node/js-big-decimal", | ||
"chokidar-cli": "^2.1.0", | ||
"coveralls": "^3.1.0", | ||
"cross-env": "^7.0.2", | ||
@@ -61,2 +62,3 @@ "del": "^5.1.0", | ||
"jasmine-spec-reporter": "^5.0.2", | ||
"nyc": "^15.1.0", | ||
"terser-webpack-plugin": "^3.0.8", | ||
@@ -69,6 +71,3 @@ "ts-node": "^8.10.2", | ||
"false": {}, | ||
"dependencies": { | ||
"coveralls": "^3.1.0", | ||
"nyc": "^15.1.0" | ||
} | ||
"dependencies": {} | ||
} |
@@ -17,18 +17,19 @@ # JS Big Decimal | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Operations](#operations) | ||
- [bigDecimal(number)](#bigdecimalnumber) | ||
- [getValue()](#getvalue) | ||
- [getPrettyValue(number, digits, separator)](#getprettyvaluenumber-digits-separator) | ||
- [round(number, precision, roundingMode)](#roundnumber-precision-roundingmode) | ||
- [floor(number)](#floornumber) | ||
- [ceil(number)](#ceilnumber) | ||
- [compareTo(number1, number2)](#comparetonumber1-number2) | ||
- [negate(number)](#negatenumber) | ||
- [add(augend, addend)](#addaugend-addend) | ||
- [subtract(minuend, subtrahend)](#subtractminuend-subtrahend) | ||
- [multiply(multiplicand, multiplier)](#multiplymultiplicand-multiplier) | ||
- [divide(dividend, divisor, precision)](#dividedividend-divisor-precision) | ||
- [modulus(dividend, divisor)](#modulusdividend-divisor) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Operations](#operations) | ||
- [bigDecimal(number)](#bigdecimalnumber) | ||
- [getValue()](#getvalue) | ||
- [getPrettyValue(number, digits, separator)](#getprettyvaluenumber-digits-separator) | ||
- [round(number, precision, roundingMode)](#roundnumber-precision-roundingmode) | ||
- [floor(number)](#floornumber) | ||
- [ceil(number)](#ceilnumber) | ||
- [compareTo(number1, number2)](#comparetonumber1-number2) | ||
- [negate(number)](#negatenumber) | ||
- [add(augend, addend)](#addaugend-addend) | ||
- [subtract(minuend, subtrahend)](#subtractminuend-subtrahend) | ||
- [multiply(multiplicand, multiplier)](#multiplymultiplicand-multiplier) | ||
- [divide(dividend, divisor, precision)](#dividedividend-divisor-precision) | ||
- [modulus(dividend, divisor)](#modulusdividend-divisor) | ||
- [Support the developers :heart: :star: :money_with_wings:](#support-the-developers-heart-star-money_with_wings) | ||
@@ -240,2 +241,10 @@ <!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
``` | ||
Further, the result takes the sign of the dividend and the sign of the divisor is ignored. Note that this behaviour is the same as in Java and JavaScript. | ||
Further, the result takes the sign of the dividend and the sign of the divisor is ignored. Note that this behaviour is the same as in Java and JavaScript. | ||
# Support the developers :heart: :star: :money_with_wings: | ||
If this library helps you in your organization, you can show some love by giving the repo a star or support by making a nominal monetary contribution. | ||
| <img src="https://github.githubassets.com/images/icons/emoji/unicode/1f375.png" width="45px" alt="Tea" style="vertical-align: middle"> <br> $ 1.99 <br> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z55C4Y6K6AYWJ&os0=Tea"><img src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynowCC_LG.gif" alt="Paypal Pay Now"/></a> | <img src="https://github.githubassets.com/images/icons/emoji/unicode/2615.png" width="45px" alt="Coffee" style="vertical-align: middle"> <br> $ 2.99 <br> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z55C4Y6K6AYWJ&os0=Coffee"><img src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynowCC_LG.gif" alt="Paypal Pay Now"/></a> | <img src="https://github.githubassets.com/images/icons/emoji/unicode/1f354.png" width="45px" alt="Burger" style="vertical-align: middle"> <br> $ 4.49 <br> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z55C4Y6K6AYWJ&os0=Burger"><img src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynowCC_LG.gif" alt="Paypal Pay Now"/></a> | <img src="https://github.githubassets.com/images/icons/emoji/unicode/1f355.png" width="45px" alt="Dinner" style="vertical-align: middle"> <br> $ 9.99 <br> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z55C4Y6K6AYWJ&os0=Dinner"><img src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynowCC_LG.gif" alt="Paypal Pay Now"/></a> | | ||
|--|--|--|--| | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105856
0
249
18
- Removedcoveralls@^3.1.0
- Removednyc@^15.1.0
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.2(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.2(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.25.9(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@istanbuljs/load-nyc-config@1.1.0(transitive)
- Removed@istanbuljs/schema@0.1.3(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedaggregate-error@3.1.0(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedappend-transform@2.0.0(transitive)
- Removedarchy@1.0.0(transitive)
- Removedargparse@1.0.10(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbrowserslist@4.24.2(transitive)
- Removedcaching-transform@4.0.0(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcaniuse-lite@1.0.30001683(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedclean-stack@2.2.0(transitive)
- Removedcliui@6.0.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcommondir@1.0.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@1.9.02.0.0(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcoveralls@3.1.1(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddefault-require-extensions@3.0.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedelectron-to-chromium@1.5.64(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedes6-error@4.1.1(transitive)
- Removedescalade@3.2.0(transitive)
- Removedesprima@4.0.1(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfind-cache-dir@3.3.2(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedforeground-child@2.0.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfromentries@1.3.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedget-package-type@0.1.0(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobals@11.12.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhasha@5.2.2(transitive)
- Removedhtml-escaper@2.0.2(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedistanbul-lib-coverage@3.2.2(transitive)
- Removedistanbul-lib-hook@3.0.0(transitive)
- Removedistanbul-lib-instrument@4.0.3(transitive)
- Removedistanbul-lib-processinfo@2.0.3(transitive)
- Removedistanbul-lib-report@3.0.1(transitive)
- Removedistanbul-lib-source-maps@4.0.1(transitive)
- Removedistanbul-reports@3.1.7(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjsesc@3.0.2(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlcov-parse@1.0.0(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedlodash.flattendeep@4.4.0(transitive)
- Removedlog-driver@1.2.7(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmake-dir@3.1.04.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedms@2.1.3(transitive)
- Removednode-preload@0.2.1(transitive)
- Removednode-releases@2.0.18(transitive)
- Removednyc@15.1.0(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-map@3.0.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpackage-hash@4.0.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpkg-dir@4.2.0(transitive)
- Removedprocess-on-spawn@1.1.0(transitive)
- Removedpsl@1.13.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrelease-zalgo@1.0.0(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedrequire-main-filename@2.0.0(transitive)
- Removedresolve-from@5.0.0(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedspawn-wrap@2.0.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedstrip-bom@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedtest-exclude@6.0.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedtype-fest@0.8.1(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.08.3.2(transitive)
- Removedverror@1.10.0(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwhich-module@2.0.1(transitive)
- Removedwrap-ansi@6.2.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@3.0.3(transitive)
- Removedy18n@4.0.3(transitive)
- Removedyallist@3.1.1(transitive)
- Removedyargs@15.4.1(transitive)
- Removedyargs-parser@18.1.3(transitive)