Fantom

 

abstract const class

sys::Num

sys::Obj
  sys::Num

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

Slots

localeDecimalSource

const static Str localeDecimal()

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

localeGroupingSource

const static Str localeGrouping()

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

localeMinusSource

const static Str localeMinus()

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

localeNaNSource

const static Str localeNaN()

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

localeNegInfSource

const static Str localeNegInf()

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

localePercentSource

const static Str localePercent()

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

localePosInfSource

const static Str localePosInf()

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

toDecimalSource

Decimal toDecimal()

Convert this number to a Decimal.

toFloatSource

Float toFloat()

Convert this number to a Float.

toIntSource

Int toInt()

Convert this number to an Int.