Num
const abstract class Num : Obj
Num is the base class for number classes: Int, Float, and Decimal.
Get the current locale's string representation for not-a-number
Convert this number to an Int
Get the current locale's minus sign used to represent a negative number
Get the current locale's symbol for the percent sign
Get the current locale's string representation for negative infinity
Convert this number to a Float
Get the current locale's decimal separator
Convert this number to a Decimal
Get the current locale's separator for grouping thousands together
Get the current locale's string representation for positive infinity
static Str localeDecimal()
Get the current locale's decimal separator. For example in the the US this is a dot.
static Str localeGrouping()
Get the current locale's separator for grouping thousands together. For example in the US this is a comma.
static Str localeMinus()
Get the current locale's minus sign used to represent a negative number.
static Str localeNaN()
Get the current locale's string representation for not-a-number.
static Str localeNegInf()
Get the current locale's string representation for negative infinity.
static Str localePercent()
Get the current locale's symbol for the percent sign.
static Str localePosInf()
Get the current locale's string representation for positive infinity.
Decimal toDecimal()
Convert this number to a Decimal.
Float toFloat()
Convert this number to a Float.
Int toInt()
Convert this number to an Int.