toFloat() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.24 is the most recent stable version of Flux.

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

Function type: Type conversion
Output data type: Float

toFloat()

Examples

from(bucket: "telegraf")
  |> filter(fn:(r) =>
    r._measurement == "mem" AND
    r._field == "used"
  )
  |> toFloat()

Function definition

toFloat = (tables=<-) =>
  tables
    |> map(fn:(r) => float(v: r._value))