Class Integer

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

public define to_bool: Boolean

Converts an Integer to a Boolean.

public define to_byte: Byte

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

public 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).

public define to_s: String

Convert an Integer to a String using base-10.