NumberUtils class abstract

This class contains utility functions related to number manipulation, such as rounding/wrapping values

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

roundToPlaces(double val, int places) double
Rounds a double to have places places
wrapDouble(double val, double min, double max) double
Wraps a double val between min and max. If min = 1, max = 5 and val = 7, this will return 2.
wrapInt(int val, int min, int max) int
Wraps an integer val between min and max. If min = 1, max = 5 and val = 7, this will return 2.