DHUDoubleExtensions extension

DHUDoubleExtensions

on

Properties

absolute double

Available on double, provided by the DHUDoubleExtensions extension

Returns the absolute value
no setter
doubled double

Available on double, provided by the DHUDoubleExtensions extension

Return this number time two
no setter
quadrupled double

Available on double, provided by the DHUDoubleExtensions extension

Return this number time four
no setter
squared double

Available on double, provided by the DHUDoubleExtensions extension

Return squared number
no setter
tripled double

Available on double, provided by the DHUDoubleExtensions extension

Return this number time three
no setter

Methods

inRangeOf(double min, double max) double

Available on double, provided by the DHUDoubleExtensions extension

Return the min if this number is smaller then minimum Return the max if this number is bigger the the maximum Return this number if it's between the range
roundDownToMultiple(double multiple) double

Available on double, provided by the DHUDoubleExtensions extension

Rounds this double down to the nearest multiple of multiple.
roundToNearestMultiple(double multiple) double

Available on double, provided by the DHUDoubleExtensions extension

Rounds this double to the nearest multiple of multiple.
roundUpToMultiple(double multiple) double

Available on double, provided by the DHUDoubleExtensions extension

Rounds this double up to the nearest multiple of multiple.
toFractionString() String

Available on double, provided by the DHUDoubleExtensions extension

Converts this double to a fraction string representation.