FloatingPointRoundingMode enum
Floating Point Rounding Modes
Values
- truncate → const FloatingPointRoundingMode
-
Truncate the result.
This is retained for compatibility and has the same finite-result behavior as roundTowardsZero.
- roundNearestEven → const FloatingPointRoundingMode
-
Round to nearest, ties to even. Round to the nearest value with an even LSB.
- roundNearestTiesAway → const FloatingPointRoundingMode
-
Round to nearest, with exact ties rounded away from zero.
- roundTowardsZero → const FloatingPointRoundingMode
-
Round toward zero.
- roundTowardsInfinity → const FloatingPointRoundingMode
-
Round toward positive infinity.
- roundTowardsNegativeInfinity → const FloatingPointRoundingMode
-
Round toward negative infinity.
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.