NumExtension<T extends num> extension
Utilities for formatting numbers.
- on
-
- T
Methods
-
between(
num min, num max) → bool -
Returns
true
ifthis
is between the givenmin
(inclusive) andmax
(exclusive). -
outside(
num min, num max) → bool -
Returns
true
if this number is outside the given range ofmin
(exclusive) andmax
(exclusive). -
padLeft(
int width, [String padding = '0']) → String -
Transforms
this
into aString
and pads it on the left if it is shorter than the givenwidth
. -
padRight(
int width, [String padding = '0']) → String -
Transforms
this
into aString
and pads it on the right if it is shorter than the givenwidth
.