mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2025-06-12 20:34:36 +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:
parent
01e78ca9c4
commit
bb437da9e4
@ -4458,6 +4458,7 @@
|
|||||||
Decimal.tan = tan;
|
Decimal.tan = tan;
|
||||||
Decimal.tanh = tanh; // ES6
|
Decimal.tanh = tanh; // ES6
|
||||||
Decimal.trunc = trunc; // ES6
|
Decimal.trunc = trunc; // ES6
|
||||||
|
Decimal.zero = new Decimal(0);
|
||||||
|
|
||||||
if (obj === void 0) obj = {};
|
if (obj === void 0) obj = {};
|
||||||
if (obj) {
|
if (obj) {
|
||||||
|
Loading…
Reference in New Issue
Block a user