types.isNumeric() function
types.isNumeric()
tests if a value is a numeric type (int, uint, or float).
This is a helper function to test or filter for values that can be used in arithmetic operations or aggregations.
Function type signature
(v: A) => bool where A: Basic
Parameters
v
(Required) Value to test.
Examples
Filter by numeric values
import "types"
data
|> filter(fn: (r) => types.isNumeric(v: r._value))
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.