NumExtensions extension

Extension methods for num (and its subtypes like int, double).

on

Properties

isNotZeroOrNegative bool

Available on num, provided by the NumExtensions extension

Returns true if the number is not zero and not negative.
no setter
isZeroOrNegative bool

Available on num, provided by the NumExtensions extension

Returns true if the number is zero or negative.
no setter

Methods

length() int

Available on num, provided by the NumExtensions extension

Returns the number of digits in the string representation of the number.