OxL Reference

method f64.toString

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

Example:

oxl✓ checked in CI
fn main() io {
  let x: f64 = 1.5
  print("{x.toString()}")
}
Output
1.5
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:4195

See also