DoubleExtensions extension
Extensions on double for convenience.
- on
Methods
-
toZeroIfNegative(
) → double -
Available on double, provided by the DoubleExtensions extension
Returns 0.0 if the number is negative, otherwise returns the number itself.