bankers-math
Advanced tools
Comparing version 0.1.7 to 0.2.0
@@ -84,3 +84,3 @@ | ||
let toCut = feeTotal - amount | ||
for (let i = feeValues.length - 1; toCut > 0 && i >= 0; ++i) { | ||
for (let i = feeValues.length - 1; toCut > 0 && i >= 0; --i) { | ||
let tc = toCut <= feeValues[i] ? toCut : feeValues[i] | ||
@@ -87,0 +87,0 @@ feeValues[i] -= tc |
{ | ||
"name": "bankers-math", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"description": "Helper function for Bankers' calculus", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"jest": "^27.5.1" | ||
"jest": "^29.6.2" | ||
}, | ||
@@ -28,0 +28,0 @@ "engines": { |
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