Docs

v2.0

toUInt() function

The toUInt() function converts a value to an UInteger.

Function type: Type conversion
Output data type: UInteger

toUInt()

Examples

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

Function definition

toUInt = (tables=<-) =>
  tables
    |> map(fn:(r) => uint(v:r._value))

Bug Reports and Feedback

Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation.

Submit feedback in the InfluxData Community