+2
-2
| { | ||
| "name": "safe-mts", | ||
| "version": "0.0.1", | ||
| "version": "0.1.1", | ||
| "description": "Safe arithmetics around floating point numbers", | ||
@@ -12,3 +12,3 @@ "main": "lib/index", | ||
| "files": ["lib"], | ||
| "keywords": ["safe-maths", "safemaths", "floating point", "arithmetic"], | ||
| "keywords": ["safe-mts","safe-maths","safemaths", "floating point", "arithmetic"], | ||
| "bugs": { | ||
@@ -15,0 +15,0 @@ "url": "https://github.com/Xavier577/safe-maths/issues" |
+6
-6
@@ -43,3 +43,3 @@ # Safe Maths | ||
| ``` | ||
| $ yarn add safe-maths | ||
| $ yarn add safe-mts | ||
| ``` | ||
@@ -50,3 +50,3 @@ | ||
| ``` | ||
| $ npm install safe-maths | ||
| $ npm install safe-mts | ||
| ``` | ||
@@ -62,3 +62,3 @@ | ||
| ```typescript | ||
| import { safeAdd } from "safe-maths"; | ||
| import { safeAdd } from "safe-mts"; | ||
@@ -74,3 +74,3 @@ console.log(0.1 + 0.7) // 0.7999999999999999 | ||
| ```typescript | ||
| import { safeSubtract } from "safe-maths"; | ||
| import { safeSubtract } from "safe-mts"; | ||
@@ -87,3 +87,3 @@ console.log(0.7 - 0.2) // 0.49999999999999994 | ||
| ```typescript | ||
| import { safeMultiply } from "safe-maths"; | ||
| import { safeMultiply } from "safe-mts"; | ||
@@ -100,3 +100,3 @@ console.log(0.1 * 0.7) // 0.06999999999999999 | ||
| ```typescript | ||
| import { decimalCount } from "safe-maths"; | ||
| import { decimalCount } from "safe-mts"; | ||
@@ -103,0 +103,0 @@ console.log(decimalCount(0.1)) // 1 |
8437
-0.02%