method f32.toString
The text of the value (what interpolation {x} shows).
Example:
fn main() io {
let x: f32 = 1.5
print("{x.toString()}")
}Вывод
1.5
pub(api) fn toString() -> strСложность. O(1).
С версии. 1.0.0-beta
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/numbers.oxl:4470