float() function

The float() function converts a single value to a float.

Function type: Type conversion
Output data type: Float

float(v: "3.14")

Parameters

v

The value to convert.

Examples

from(bucket: "sensor-data")
  |> filter(fn:(r) =>
    r._measurement == "camera" and
  )
  |> map(fn:(r) => float(v: r.aperture))

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support