number
Provides nice extensions to the interface of basic numerical types, for convenience.
Attributes
 Graph

 Supertypes
 Self type

number.type
Members list
Extensions
Extensions
num atLeast limit
is equivalent to num.max(limit)
.
num atLeast limit
is equivalent to num.max(limit)
.
Attributes
num atMost limit
is equivalent to num.min(limit)
.
num atMost limit
is equivalent to num.min(limit)
.
Attributes
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
Attributes
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Attributes
Determines if the integer is divisible by two.
Determines if the integer is divisible by two.
Attributes
num atLeast limit
is equivalent to num.max(limit)
.
num atLeast limit
is equivalent to num.max(limit)
.
Attributes
num atMost limit
is equivalent to num.min(limit)
.
num atMost limit
is equivalent to num.min(limit)
.
Attributes
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
Attributes
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Attributes
num atLeast limit
is equivalent to num.max(limit)
.
num atLeast limit
is equivalent to num.max(limit)
.
Attributes
num atMost limit
is equivalent to num.min(limit)
.
num atMost limit
is equivalent to num.min(limit)
.
Attributes
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
Attributes
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Attributes
num atLeast limit
is equivalent to num.max(limit)
.
num atLeast limit
is equivalent to num.max(limit)
.
Attributes
num atMost limit
is equivalent to num.min(limit)
.
num atMost limit
is equivalent to num.min(limit)
.
Attributes
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
num.clamp(low, high)
is equivalent to num.max(low).min(high)
.
Attributes
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Determines if the at least as large as low
and less than high
. Note that the lower bound is inclusive and the upper bound exclusive.
Attributes
Determines if the integer is divisible by two.
Determines if the integer is divisible by two.