decimal.js icon indicating copy to clipboard operation
decimal.js copied to clipboard

Add default value to Decimal constructor

Open njmaeff opened this issue 2 years ago • 0 comments

  • 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.

njmaeff avatar Dec 25 '22 05:12 njmaeff