Documentation

strings.isDigit() function

The strings.isDigit() function tests if a single-character string is a digit (0-9).

Output data type: Boolean

import "strings"

strings.isDigit(v: "A")

// returns false

Parameters

v

The single-character string to test.

Data type: String

Examples

Filter by columns with digits as values
import "strings"

data
  |> filter(fn: (r) => strings.isDigit(v: r.serverRef))

New! Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: