Work with basic data types
All Flux data types are constructed from the following basic types:
Boolean
A boolean type represents a truth value (true
or false
). Learn how to work with boolean data types in Flux.
true
false
Bytes
A bytes type represents a sequence of byte values. Learn how to work with bytes data types in Flux.
Duration
A duration type represents a length of time with nanosecond precision Learn how to work with duration data types in Flux.
1ns
1h
1w
3d12h4m25s
Regular expression
A regular expression type represents a regular expression pattern. Learn how to work with Flux regular expression types.
/^[a-z0-9]+$/
String
A string type represents a sequence of characters. Learn how to work with string data types in Flux.
"abc"
"string with double \" quote"
"string with backslash \\"
"日本語"
"\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"
Time
A time type represents a single point in time with nanosecond precision. Learn how to work with time data types in Flux.
2021-01-01
2021-01-01T00:00:00Z
2021-01-01T00:00:00.000Z
Float
A float type represents a IEEE-754 64-bit floating-point number. Learn how to work with float types in Flux.
0.0
123.4
-123.456
Integer
An integer type represents a signed 64-bit integer. Learn how to work with integer types in Flux.
0
2
1254
-1254
UIntegers
An unsigned integer (uinteger) type represents a unsigned 64-bit integer. Learn how to work with unsigned integer types in Flux.
uint(v: 123)
Null
The null type represents a missing or unknown value. Learn how to work with null types in Flux.
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.