Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Casts an expression to a float.

float(x:any) -> float

The float function converts the given value x to a floating-point value.

from {x: float(42)}
{x: 42.0}
from {x: float("4.2")}
{x: 4.2}

Last updated: