DoubleExtensions extension
- on
Properties
- isEmpty → bool
-
Available on double, provided by the DoubleExtensions extension
Returnstrue
if double is0
.no setter - isNotEmpty → bool
-
Available on double, provided by the DoubleExtensions extension
Returnstrue
if double is not0
.no setter
Methods
-
format(
String format) → String -
Available on double, provided by the DoubleExtensions extension
Enterformat
to replace the value of double with a string. -
limit(
double min, double max) → double -
Available on double, provided by the DoubleExtensions extension
If double is less than or equal tomin
,min
is returned. -
limitHigh(
double max) → double -
Available on double, provided by the DoubleExtensions extension
If double is greater than or equal tomax
,max
is returned. -
limitLow(
double min) → double -
Available on double, provided by the DoubleExtensions extension
If double is less than or equal tomin
,min
is returned. -
replaceNanOrInfinite(
[double replace = 0.0]) → double -
Available on double, provided by the DoubleExtensions extension
If double is double.nan, double.infinity, or double.negativeInfinity, replace it withreplace
. -
roundBy(
[int base = 0]) → double -
Available on double, provided by the DoubleExtensions extension
Round double to the nearestbase
.