Reference
std/f32
std/f32
32-bit floats: conversion, truncation and text.
narra
import * as F32 from "std/f32"
The guide teaches it in chapter 2, Values and types.
This page is generated by scripts/std/generate.nra from narrac query --json interface std/f32. Do not edit it.
Functions
from
narra
export function from<T>(value: T): f32
Effects: none.
toString
narra
export function toString(value: f32): string uses alloc
Effects: alloc.
truncate
narra
export function truncate(value: f32): Option<int>
Effects: none.