New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@phensley/decimal

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phensley/decimal - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

13

lib-es/decimal.js

@@ -724,9 +724,8 @@ import { add, divide, multiply, subtract, trimLeadingZeros, DivMod } from './math';

return Number((rnd > 5) || ((rnd === 5 && this.isodd())));
case '05up':
{
// round away from zero if digit to left is is 0 or 5
// otherwise round towards zero
var lsd = this.data.length > 0 ? this.data[0] % 10 : 0;
return Number(!(rnd === 0) && (lsd === 0 || lsd === 5));
}
case '05up': {
// round away from zero if digit to left is is 0 or 5
// otherwise round towards zero
var lsd = this.data.length > 0 ? this.data[0] % 10 : 0;
return Number(!(rnd === 0) && (lsd === 0 || lsd === 5));
}
default:

@@ -733,0 +732,0 @@ return 0;

@@ -726,9 +726,8 @@ "use strict";

return Number((rnd > 5) || ((rnd === 5 && this.isodd())));
case '05up':
{
// round away from zero if digit to left is is 0 or 5
// otherwise round towards zero
var lsd = this.data.length > 0 ? this.data[0] % 10 : 0;
return Number(!(rnd === 0) && (lsd === 0 || lsd === 5));
}
case '05up': {
// round away from zero if digit to left is is 0 or 5
// otherwise round towards zero
var lsd = this.data.length > 0 ? this.data[0] % 10 : 0;
return Number(!(rnd === 0) && (lsd === 0 || lsd === 5));
}
default:

@@ -735,0 +734,0 @@ return 0;

{
"name": "@phensley/decimal",
"version": "0.8.5",
"version": "0.8.6",
"description": "Arbitrary precision decimal math",

@@ -44,3 +44,3 @@ "main": "lib/index.js",

"ts-jest": "^23.10.5",
"tslint": "5.10.0",
"tslint": "5.14.0",
"tslint-no-circular-imports": "^0.6.1",

@@ -62,3 +62,3 @@ "typescript": "3.x"

},
"gitHead": "cb3698cedf88ad5b5ec59ee8c55cea7ddfe53a44"
"gitHead": "4d29e0b719fadefd8a5b1ca06ac4897bd65a64ac"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc