logo

abstract const class

sys::Num

sys::Obj
  sys::Num

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

Slots

make

new make()

Protected constructor.

Source

toDecimal

virtual Decimal toDecimal()

Convert this number to a Decimal.

Source

toFloat

virtual Float toFloat()

Convert this number to a Float.

Source

toInt

virtual Int toInt()

Convert this number to an Int.

Source