🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

safe-mts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safe-mts - npm Package Compare versions

Comparing version
0.0.1
to
0.1.1
+2
-2
package.json
{
"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"

@@ -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