DoubleExtension extension
Returns a value indicating whether two instances of Double represent the same value.
value
equal to other
will return true
, otherwise, false
.
If value
or other
is not finite (NaN
or infinity), throws an UnsupportedError.
Compare two double-precision values.
Returns an integer that indicates whether value
is less than, equal to, or greater than other
.
value
less than other
will return -1
value
equal to other
will return 0
value
greater than other
will return 1
If value
or other
is not finite (NaN
or infinity), throws an UnsupportedError.
- on
Methods
-
compare(
double other, {double precision = precisionErrorTolerance}) → int -
equalTo(
double other, {double precision = precisionErrorTolerance}) → bool -
greaterThan(
double other, {double precision = precisionErrorTolerance}) → bool -
greaterThanOrEqualTo(
double other, {double precision = precisionErrorTolerance}) → bool -
lessThan(
double other, {double precision = precisionErrorTolerance}) → bool -
lessThanOrEqualTo(
double other, {double precision = precisionErrorTolerance}) → bool