ReadonlycoefficientThe integer digits: the value is coefficient / 10 ** scale.
ReadonlyscaleThe number of digits after the point.
Multiplies by 10 ** places, exactly. A negative places divides.
Writes the decimal with scale digits after the point. It throws a RangeError if digits are lost.
Gives the same text as toString. JSON.stringify calls it.
Gives the nearest number. Precision can be lost.
Writes the decimal with its own scale.
StaticfromMakes a Decimal from a decimal string (exponent notation is allowed) or a finite number.
An exact decimal number. It keeps the digits and the scale of the wire string, so
"123.4500"writes back as"123.4500". ADecimalis immutable.equalsignores trailing zeros. It does no arithmetic: use@millwork-ts/decimalfor math.