Home
Control • Control
Functions • Functions
Methods • Files • Integers • IO • Lists • Process • Signal • Strings • Web
Modules • modules
Syntax • Syntax
Threading • Threading
Types • Structs • Types
Variables • Variables

Integer methods

Methods are called with dot syntax: n.method().

toString

Converts the integer to its string representation.

let s = 42.toString()   // "42"

toFloat

Converts the integer to a float.

let f = 7.toFloat()   // 7.0