OxL Reference

method i32.toString

The decimal text of the value (what interpolation {x} shows).

Example:

oxl✓ checked in CI
fn main() io {
  let x: i32 = 42
  print(x.toString())
}
Output
42
pub(api) fn toString() -> str

Complexity. O(1).

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/numbers.oxl:688

See also