Last updated
Was this helpful?
Last updated
Was this helpful?
Fixed provides overloads for the full set of mathematical operations.
When performing most mathematical operations the scale of the result is the larger scale of the two operands.
Example:
For multiplication, the resulting scale is the sum of the operands scales e.g.
If you need to change the scale of a number use Fixed.copyWith passing the required scale.
The support operators are:
Example 6