1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00
MikeMcl_decimal.js/test/modules
Nik Jmaeff 5ddbf63040 Add default value to Decimal constructor
- Adding a default value allows Decimal to be constructed without arguments and not throw an error. Javascript primitives like String and Number can be constructed without an argument and this property is useful when using the type with a library like class-transformer.
- Assign a default value of zero as the decimal with no constructor argument.
2022-12-24 21:09:55 -08:00
..
abs.js refactor tests 2016-02-06 17:51:29 +00:00
acos.js refactor tests 2016-02-06 17:51:29 +00:00
acosh.js refactor tests 2016-02-06 17:51:29 +00:00
asin.js refactor tests 2016-02-06 17:51:29 +00:00
asinh.js refactor tests 2016-02-06 17:51:29 +00:00
atan2.js refactor tests 2016-02-06 17:51:29 +00:00
atan.js refactor tests 2016-02-06 17:51:29 +00:00
atanh.js refactor tests 2016-02-06 17:51:29 +00:00
cbrt.js refactor tests 2016-02-06 17:51:29 +00:00
ceil.js refactor tests 2016-02-06 17:51:29 +00:00
clamp.js v10.3.0 2021-06-22 19:20:14 +01:00
clone.js Add Decimal.isDecimal and config reset 2017-12-09 22:05:28 +00:00
cmp.js refactor tests 2016-02-06 17:51:29 +00:00
config.js Add Decimal.isDecimal and config reset 2017-12-09 22:05:28 +00:00
cos.js refactor tests 2016-02-06 17:51:29 +00:00
cosh.js refactor tests 2016-02-06 17:51:29 +00:00
Decimal.js Add default value to Decimal constructor 2022-12-24 21:09:55 -08:00
div.js refactor tests 2016-02-06 17:51:29 +00:00
divToInt.js refactor tests 2016-02-06 17:51:29 +00:00
dpSd.js refactor tests 2016-02-06 17:51:29 +00:00
exp.js refactor tests 2016-02-06 17:51:29 +00:00
floor.js refactor tests 2016-02-06 17:51:29 +00:00
hypot.js refactor tests 2016-02-06 17:51:29 +00:00
immutability.js v6.0.0 2016-06-30 19:27:50 +01:00
intPow.js Add default value to Decimal constructor 2022-12-24 21:09:55 -08:00
isFiniteEtc.js Add Decimal.isDecimal and config reset 2017-12-09 22:05:28 +00:00
ln.js Bugfix: #26 clone 2016-02-14 21:13:04 +00:00
log2.js refactor tests 2016-02-06 17:51:29 +00:00
log10.js refactor tests 2016-02-06 17:51:29 +00:00
log.js refactor tests 2016-02-06 17:51:29 +00:00
minAndMax.js refactor tests 2016-02-06 17:51:29 +00:00
minus.js refactor tests 2016-02-06 17:51:29 +00:00
mod.js refactor tests 2016-02-06 17:51:29 +00:00
neg.js refactor tests 2016-02-06 17:51:29 +00:00
plus.js refactor tests 2016-02-06 17:51:29 +00:00
pow.js Bugfix: #58 pow sometimes throws when result is Infinity 2017-06-27 22:07:37 +01:00
powSqrt.js refactor tests 2016-02-06 17:51:29 +00:00
random.js refactor tests 2016-02-06 17:51:29 +00:00
round.js refactor tests 2016-02-06 17:51:29 +00:00
sign.js refactor tests 2016-02-06 17:51:29 +00:00
sin.js refactor tests 2016-02-06 17:51:29 +00:00
sinh.js refactor tests 2016-02-06 17:51:29 +00:00
sqrt.js refactor tests 2016-02-06 17:51:29 +00:00
sum.js #100 Add Decimal.sum method 2021-06-22 10:13:28 +01:00
tan.js refactor tests 2016-02-06 17:51:29 +00:00
tanh.js refactor tests 2016-02-06 17:51:29 +00:00
times.js refactor tests 2016-02-06 17:51:29 +00:00
toBinary.js refactor tests 2016-02-06 17:51:29 +00:00
toDP.js refactor tests 2016-02-06 17:51:29 +00:00
toExponential.js refactor tests 2016-02-06 17:51:29 +00:00
toFixed.js refactor tests 2016-02-06 17:51:29 +00:00
toFraction.js refactor tests 2016-02-06 17:51:29 +00:00
toHex.js refactor tests 2016-02-06 17:51:29 +00:00
toNearest.js Code Review Changes: Updates test file and void check 2018-03-05 09:10:46 +00:00
toNumber.js refactor tests 2016-02-06 17:51:29 +00:00
toOctal.js refactor tests 2016-02-06 17:51:29 +00:00
toPrecision.js refactor tests 2016-02-06 17:51:29 +00:00
toSD.js refactor tests 2016-02-06 17:51:29 +00:00
toString.js refactor tests 2016-02-06 17:51:29 +00:00
trunc.js Bugfix: #26 clone 2016-02-14 21:13:04 +00:00
valueOf.js refactor tests 2016-02-06 17:51:29 +00:00