abstract const class sys::Num

sys::Obj
  sys::Num

Source

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

localeDecimal

const static Str localeDecimal()

Source

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

localeGrouping

const static Str localeGrouping()

Source

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

localeMinus

const static Str localeMinus()

Source

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

localeNaN

const static Str localeNaN()

Source

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

localeNegInf

const static Str localeNegInf()

Source

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

localePercent

const static Str localePercent()

Source

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

localePosInf

const static Str localePosInf()

Source

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

toDecimal

Decimal toDecimal()

Source

Convert this number to a Decimal.

toFloat

Float toFloat()

Source

Convert this number to a Float.

toInt

Int toInt()

Source

Convert this number to an Int.