NumExtension extension

extension for num.

on

Properties

isWholeNumber bool
Returns true if this double is a whole number.
no setter
naturalExponent double
Returns the natural exponent, e, to the power of this number.
no setter
square num
Returns the square of this number.
no setter
squareRoot double
Returns the square root of this number.
no setter

Methods

cast<N extends num>() → N
Cast this number to N, where N extends num. Calls toInt or toDouble to perform the casting.
compactType() num
Returns an int for this num if isWholeNumber otherwise returns this.
signWithZeroTolerance([double zeroTolerance = 1.0E-20]) int
Returns the sign of this number, regarding the zeroTolerance.
toBigInt() BigInt
Converts this num to BigInt.