fixed library Null safety

The Fixed package allows you to store and perform maths on decimal numbers with a fixed scale (fixed number of decimal places). All amounts are stored using the Decimal package to allow precision maths to be performed.

Conversion from a number of other numberic formats is supported as well as parsing and formatting Fixed scale no.s

Fixed uses the Decimal package to store the underlying values so the precision is only limited by the size of memory.

A range of mathematical comparision operations are supported.

Classes

Fixed
Represents a fixed scale decimal no.

Exceptions / Errors

AmountTooLargeException
Thrown if a number larger than the supported ranges is passed in. This will only occur if you call Fixed.fromNum with scale > 20 or a absolute value of > 10^21 If you need larger numbers then use one of the alternate constructors.
FixedException
Base exception of all exceptions thrown from the Fixed package.