DoubleExt extension
Extension providing additional functionality for doubles.
- on
Properties
- days → Duration
-
Returns a Duration representing this double value in days.
no setter
- hours → Duration
-
Returns a Duration representing this double value in hours.
no setter
- milliseconds → Duration
-
Returns a Duration representing this double value in milliseconds.
no setter
- minutes → Duration
-
Returns a Duration representing this double value in minutes.
no setter
- ms → Duration
-
Alias for milliseconds.
no setter
- seconds → Duration
-
Returns a Duration representing this double value in seconds.
no setter
Methods
-
toPrecision(
int fractionDigits) → double - Returns this double value rounded to the specified number of decimal places.