float64
float64(value: numeric or string) -> float64
Casts the argument to float64. A null input stays null. int64 values widen without changing the numeric value. Decimal string literals must parse as a finite float64 or the query fails at parse time. A duration becomes its length in nanoseconds as a floating-point number. A timestamp becomes its nanosecond epoch value as float64.
Domain
This is a scalar function (calculates a single output value for a single input row).
Categories
Examples
make_col usage:float64(cpu_percent)
Shows float64 widening or casting a numeric field to floating point for downstream math or comparisons.
make_col nanos_float:float64(wait_duration)
Shows float64 converting a duration into its length expressed as floating-point nanoseconds for mixed-type math.
Updated 19 days ago