View source
enum abstract NumberBaseRoundType(String)
package feathers.formatters
from String to String
The NumberBaseRoundType class defines the constant values for formatter properties
that specify a type of rounding. For example, you can set the
NumberFormatter.rounding
property using these constants.
See also:
Variables
inlineread onlyDOWN:NumberBaseRoundType = "down"
Rounds a number down to an integer that is both closest to, and less than or equal to, the input number.
inlineread onlyNEAREST:NumberBaseRoundType = "nearest"
Rounds a number up or down to the nearest integer.
inlineread onlyUP:NumberBaseRoundType = "up"
Rounds a number up to an integer value that is both closest to, and greater than or equal to, the input number.