---
title: Work with basic data types
description: 'All Flux data types are constructed from basic types: boolean, bytes, duration, string, time, float, integer, uintegers, and null.'
url: https://docs.influxdata.com/flux/v0/data-types/basic/
estimated_tokens: 1917
product: Flux
version: v0
---

# Work with basic data types

All Flux data types are constructed from the following **basic types**:

-   [Boolean](#boolean)
-   [Bytes](#bytes)
-   [Duration](#duration)
-   [Regular expression](#regular-expression)
-   [String](#string)
-   [Time](#time)
-   [Float](#float)
-   [Integer](#integer)
-   [UIntegers](#uintegers)
-   [Null](#null)

### [Boolean](/flux/v0/data-types/basic/bool/)

A **boolean** type represents a truth value (`true` or `false`). Learn how to work with boolean data types in Flux.

```js
true
false
```

[Read more](/flux/v0/data-types/basic/bool/)

### [Bytes](/flux/v0/data-types/basic/bytes/)

A **bytes** type represents a sequence of byte values. Learn how to work with bytes data types in Flux.

### [Duration](/flux/v0/data-types/basic/duration/)

A **duration** type represents a length of time with nanosecond precision Learn how to work with duration data types in Flux.

```js
1ns
1h 
1w 
3d12h4m25s
```

[Read more](/flux/v0/data-types/basic/duration/)

### [Regular expression](/flux/v0/data-types/basic/regexp/)

A **regular expression** type represents a regular expression pattern. Learn how to work with Flux regular expression types.

```js
/^[a-z0-9]+$/
```

[Read more](/flux/v0/data-types/basic/regexp/)

### [String](/flux/v0/data-types/basic/string/)

A **string** type represents a sequence of characters. Learn how to work with string data types in Flux.

```js
"abc"
"string with double \" quote"
"string with backslash \\"
"日本語"
"\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"
```

[Read more](/flux/v0/data-types/basic/string/)

### [Time](/flux/v0/data-types/basic/time/)

A **time** type represents a single point in time with nanosecond precision. Learn how to work with time data types in Flux.

```js
2021-01-01
2021-01-01T00:00:00Z
2021-01-01T00:00:00.000Z
```

[Read more](/flux/v0/data-types/basic/time/)

### [Float](/flux/v0/data-types/basic/float/)

A **float** type represents a [IEEE-754](https://standards.ieee.org/standard/754-2019.html) 64-bit floating-point number. Learn how to work with float types in Flux.

```js
0.0
123.4
-123.456
```

[Read more](/flux/v0/data-types/basic/float/)

### [Integer](/flux/v0/data-types/basic/int/)

An **integer** type represents a signed 64-bit integer. Learn how to work with integer types in Flux.

```js
0
2
1254
-1254
```

[Read more](/flux/v0/data-types/basic/int/)

### [UIntegers](/flux/v0/data-types/basic/uint/)

An **unsigned integer** (uinteger) type represents a unsigned 64-bit integer. Learn how to work with unsigned integer types in Flux.

```js
uint(v: 123)
```

[Read more](/flux/v0/data-types/basic/uint/)

### [Null](/flux/v0/data-types/basic/null/)

The **null type** represents a missing or unknown value. Learn how to work with null types in Flux.
