@aryth/math
Advanced tools
Comparing version 0.3.21 to 0.3.22
@@ -49,3 +49,3 @@ 'use strict'; | ||
function abbr(num) { | ||
if (!num) return 0; | ||
if (!num) return '0'; | ||
if (-0.01 < num && num < 0.01) return num.toExponential(1); | ||
@@ -52,0 +52,0 @@ if (-E3 < num && num < E3) return roundD2(num); |
@@ -45,3 +45,3 @@ const E1 = 10; // E1 | ||
function abbr(num) { | ||
if (!num) return 0; | ||
if (!num) return '0'; | ||
if (-0.01 < num && num < 0.01) return num.toExponential(1); | ||
@@ -48,0 +48,0 @@ if (-E3 < num && num < E3) return roundD2(num); |
{ | ||
"name": "@aryth/math", | ||
"version": "0.3.21", | ||
"version": "0.3.22", | ||
"description": "A math util library", | ||
@@ -32,3 +32,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/aryth#readme", | ||
"gitHead": "1f58f764e976a1491f3f3b4e236fb3ae0a29690e" | ||
"gitHead": "54cfbd4c499c8b5f31e1030b381f83d260a7bb63" | ||
} |
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
7707