1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2025-06-09 19:04:18 +00:00

Expose a Decimal.zero utility value

Looking to expose a quality of life constant, ala a1bdfc355e/decimal.go (L74)
This commit is contained in:
Geoff Cowan 2025-04-24 12:52:42 +10:00 committed by GitHub
parent 01e78ca9c4
commit bb437da9e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4458,6 +4458,7 @@
Decimal.tan = tan;
Decimal.tanh = tanh; // ES6
Decimal.trunc = trunc; // ES6
Decimal.zero = new Decimal(0);
if (obj === void 0) obj = {};
if (obj) {