FloatingPointRoundingMode enum
Floating Point Rounding Modes
Values
- truncate → const FloatingPointRoundingMode
-
Truncate the result, no rounding.
- roundNearestEven → const FloatingPointRoundingMode
-
Round to nearest, ties to even. Round to the nearest value with an even LSB.
- roundNearestTiesAway → const FloatingPointRoundingMode
-
Round to nearest, tieas away from zero. Round up for positive numbers, round down for negative numbers.
- roundTowardsZero → const FloatingPointRoundingMode
-
Round toward zero. Truncate.
- roundTowardsInfinity → const FloatingPointRoundingMode
-
Round toward +infinity. Round up.
- roundTowardsNegativeInfinity → const FloatingPointRoundingMode
-
Round toward -infinity. Round down.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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<
FloatingPointRoundingMode> - A constant List of the values in this enum, in order of their declaration.