Class Integer

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

0 define to_binary: String

Create a String with the value of self in binary.

0 define to_bool: Boolean

Converts an Integer to a Boolean.

0 define to_byte: Byte

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

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

0 define to_hex: String

Create a String with the value of self in hexadecimal.

0 define to_octal: String

Create a String with the value of self in octal.

0 define to_s: String

Convert an Integer to a String using base-10.