NumExtension<T extends num> extension

Utilities for formatting numbers.

on
  • T

Methods

between(num min, num max) bool
Returns true if this is between the given min (inclusive) and max (exclusive).
outside(num min, num max) bool
Returns true if this number is outside the given range of min (exclusive) and max (exclusive).
padLeft(int width, [String padding = '0']) String
Transforms this into a String and pads it on the left if it is shorter than the given width.
padRight(int width, [String padding = '0']) String
Transforms this into a String and pads it on the right if it is shorter than the given width.