MoneyRounding enum

Available rounding algos

Used for exchange in CurrencyInfo

Inheritance

Constructors

MoneyRounding()
const

Values

floor → const MoneyRounding

Floor numbers

Whole part that's less than the smallest unit of the currency will be ignored without impact on the final number

math → const MoneyRounding

Mathematical rounding

Uses usual rounding to smallest unit of the currency

bank → const MoneyRounding

Half to even rounding

Also known as banker's rounding. Rounds depending on oddness of the number.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<MoneyRounding>
A constant List of the values in this enum, in order of their declaration.