Class Integer

(builtin) class Integer {  }

The Integer class is Lily's native numeric type. Internally, it is a wrapper over a C int64_t.

Methods

define to_bool: Boolean

Converts an Integer to a Boolean.

define to_byte: Byte

Convert an Integer to a Byte, truncating the value if necessary.

define to_d: Double

Converts an Integer to a Double. Internally, this is done by a typecast to the Double type (a raw C double).

define to_s: String

Convert an Integer to a String using base-10.