Makes a decimal codec for a decimal library. Give it the Decimal, Big or BigNumber
constructor. The raw value is a decimal string. A number is also read, but never written.
The codec writes plain notation, never exponent notation.
The default name is 'big-decimal', so that it does not clash with the decimal codec of
@millwork-ts/core when an app registers both. Give name to use another name.
Makes a
decimalcodec for a decimal library. Give it theDecimal,BigorBigNumberconstructor. The raw value is a decimal string. A number is also read, but never written. The codec writes plain notation, never exponent notation.The default name is
'big-decimal', so that it does not clash with thedecimalcodec of@millwork-ts/corewhen an app registers both. Givenameto use another name.