Integers extension

Provides functions for working with ints.

See Numbers in Dart for behaviour discrepancies between native and web.

on

Methods

ceilTo(int factor) int
Ceils this to the closest multiple of factor.
floorTo(int factor) int
Floors this to the closest multiple of factor.
roundTo(int factor) int
Rounds this to the closest multiple of factor.
toBool() bool
If 0, returns false, otherwise returns true.

Static Properties

range Interval<int>
The range of int on the current platform.
no setter