NumExtensions extension
- on
Properties
- length → int
-
Available on num, provided by the NumExtensions extension
Returns the length of this int valueno setter - prettyFormat → String
-
Available on num, provided by the NumExtensions extension
Converts numbers to human-readable strings.no setter
Methods
-
divideBy(
num value) → num -
Available on num, provided by the NumExtensions extension
Divides the current number by the given value. -
equals(
num other) → bool -
Available on num, provided by the NumExtensions extension
Case equality check. -
equalsAll(
List< num> values) → bool -
Available on num, provided by the NumExtensions extension
Checks if num equals all items in the list -
equalsAny(
List< num> values) → bool -
Available on num, provided by the NumExtensions extension
Checks if num equals any item in the list -
iq(
num value) → int -
Available on num, provided by the NumExtensions extension
Performs integer division and returns the quotient. -
isEqualTo(
num other) → bool -
Available on num, provided by the NumExtensions extension
Case equality check. -
isGreaterThan(
num b) → bool -
Available on num, provided by the NumExtensions extension
Checks if GREATER than num b. -
isGreaterThanOrEqualTo(
num b) → bool -
Available on num, provided by the NumExtensions extension
Checks if GREATER than num b. -
isGt(
num b) → bool -
Available on num, provided by the NumExtensions extension
Short form forisGreaterThan
-
isGtOrEt(
num b) → bool -
Available on num, provided by the NumExtensions extension
Short form forisGreaterThanOrEqualTo
-
isLengthBetween(
int min, int max) → bool -
Available on num, provided by the NumExtensions extension
Checks if length of double value is BETWEEN minLength to max. -
isLengthEqualTo(
int other) → bool -
Available on num, provided by the NumExtensions extension
Checks if length of double value is EQUAL to max. -
isLengthEt(
int max) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLengthEqualTo
-
isLengthGreaterThan(
int max) → bool -
Available on num, provided by the NumExtensions extension
Checks if length of double value is GREATER than max. -
isLengthGreaterThanOrEqualTo(
int max) → bool -
Available on num, provided by the NumExtensions extension
Checks if length of double value is GREATER OR EQUAL to max. -
isLengthGt(
int max) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLengthGreaterThan
-
isLengthGtOrEt(
int max) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLengthGreaterThanOrEqualTo
-
isLengthLessThan(
int max) → bool -
Available on num, provided by the NumExtensions extension
Checks if length of double value is LESS than max. -
isLengthLessThanOrEqualTo(
int max) → bool -
Available on num, provided by the NumExtensions extension
Checks if length of double value is LESS OR EQUAL to max. -
isLengthLt(
int max) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLengthLessThan
-
isLengthLtOrEt(
int max) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLengthLessThanOrEqualTo
-
isLessThan(
num b) → bool -
Available on num, provided by the NumExtensions extension
Checks if LOWER than num b. -
isLessThanOrEqualTo(
num b) → bool -
Available on num, provided by the NumExtensions extension
Checks if LOWER than num b. -
isLt(
num b) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLessThan
-
isLtOrEt(
num b) → bool -
Available on num, provided by the NumExtensions extension
Short form forisLessThanOrEqualTo
-
isNotEqualTo(
num other) → bool -
Available on num, provided by the NumExtensions extension
Case in-equality check. -
minus(
num value) → num -
Available on num, provided by the NumExtensions extension
Subtracts the given value from the current number. -
multiplyBy(
num value) → num -
Available on num, provided by the NumExtensions extension
Multiplies the current number by the given value. -
negated(
) → num -
Available on num, provided by the NumExtensions extension
Negates the number. -
notEquals(
num other) → bool -
Available on num, provided by the NumExtensions extension
Case in-equality check. -
notEqualsAll(
List< num> values) → bool -
Available on num, provided by the NumExtensions extension
Checks if num does not equals all items in the list -
notEqualsAny(
List< num> values) → bool -
Available on num, provided by the NumExtensions extension
Checks if num does not equals any item in the list -
plus(
num value) → num -
Available on num, provided by the NumExtensions extension
Adds the given value to the current number. -
remainder(
num value) → num -
Available on num, provided by the NumExtensions extension
Returns the remainder of the division. -
toDigits(
int digits) → String -
Available on num, provided by the NumExtensions extension
Converts the integer to a string and left-pads it with zeroes until it reachesdigits
length.