class

Num

const abstract class Num : Obj

Num is the base class for number classes: Int, Float, and Decimal.

methods localeNaN

Get the current locale's string representation for not-a-number

toInt

Convert this number to an Int

localeMinus

Get the current locale's minus sign used to represent a negative number

localePercent

Get the current locale's symbol for the percent sign

localeNegInf

Get the current locale's string representation for negative infinity

toFloat

Convert this number to a Float

localeDecimal

Get the current locale's decimal separator

toDecimal

Convert this number to a Decimal

localeGrouping

Get the current locale's separator for grouping thousands together

localePosInf

Get the current locale's string representation for positive infinity

localeDecimal static Str localeDecimal()

Get the current locale's decimal separator. For example in the the US this is a dot.

localeGrouping static Str localeGrouping()

Get the current locale's separator for grouping thousands together. For example in the US this is a comma.

localeMinus static Str localeMinus()

Get the current locale's minus sign used to represent a negative number.

localeNaN static Str localeNaN()

Get the current locale's string representation for not-a-number.

localeNegInf static Str localeNegInf()

Get the current locale's string representation for negative infinity.

localePercent static Str localePercent()

Get the current locale's symbol for the percent sign.

localePosInf static Str localePosInf()

Get the current locale's string representation for positive infinity.

toDecimal Decimal toDecimal()

Convert this number to a Decimal.

toFloat Float toFloat()

Convert this number to a Float.

toInt Int toInt()

Convert this number to an Int.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST