js-big-decimal
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -54,2 +54,3 @@ "use strict"; | ||
} | ||
number = bigDecimal.validate(number); | ||
var len = number.indexOf('.'); | ||
@@ -92,2 +93,3 @@ len = len > 0 ? len : (number.length); | ||
bigDecimal.round = function (number, precision) { | ||
number = bigDecimal.validate(number); | ||
if (!precision) | ||
@@ -94,0 +96,0 @@ precision = 0; |
{ | ||
"name": "js-big-decimal", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Work with large numbers on the client side. Round them off to any required precission.", | ||
@@ -5,0 +5,0 @@ "main": "lib/big-decimal", |
# JS Big Decimal | ||
[![Travis](https://img.shields.io/travis/royNiladri/js-big-decimal.svg?style=flat-square)](https://travis-ci.org/royNiladri/js-big-decimal) | ||
[![devDependencies Status](https://david-dm.org/royNiladri/js-big-decimal/dev-status.svg?style=flat-square)](https://david-dm.org/royNiladri/js-big-decimal?type=dev) | ||
[![license](https://img.shields.io/github/license/royNiladri/js-big-decimal.svg?style=flat-square)](https://github.com/royNiladri/js-big-decimal/blob/master/LICENSE) | ||
@@ -5,0 +6,0 @@ [![npm](https://img.shields.io/npm/v/js-big-decimal.svg?style=flat-square)](https://www.npmjs.com/package/js-big-decimal) |
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
30349
618
141