NumExtensions extension

on

Methods

logBase(num base) double

Available on num, provided by the NumExtensions extension

Returns the logarithm of this number in the specified base.
roundToFixed(int fractionDigits) double

Available on num, provided by the NumExtensions extension

Returns this number rounded to the specified fractionDigits.
toFileSize() → (double, String)

Available on num, provided by the NumExtensions extension

Returns a string representation of this number as a file size. The number is converted to the largest unit that results in a value greater than or equal to 1. For example, 1024 is converted to a tuple (1.0, 'kB').
toStringAsSigned(int fractionDigits) String

Available on num, provided by the NumExtensions extension

Returns a string representation of this number with a sign: