> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# FLOAT

> FLOAT

FLOAT

4-byte floating point number

## Examples

Create a table with a `FLOAT` column (4 bytes). `FLOAT` has a precision of approximately 7 significant decimal digits.

```sql theme={null}
CREATE TABLE floatDemo (
    pk BIGINT(20) NOT NULL,
    channel FLOAT COMMENT "4 bytes"
) ENGINE=OLAP
DUPLICATE KEY(pk)
DISTRIBUTED BY HASH(pk) BUCKETS 1;

INSERT INTO floatDemo VALUES (1, 12345.67890123456789);
```

```Plaintext theme={null}
MySQL > SELECT * FROM floatDemo;
+------+-----------+
| pk   | channel   |
+------+-----------+
|    1 | 12345.679 |
+------+-----------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.