Class Integer

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

public define to_binary: String

Create a String with the value of self in binary.

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_hex: String

Create a String with the value of self in hexadecimal.

public define to_octal: String

Create a String with the value of self in octal.

public define to_s: String

Convert an Integer to a String using base-10.