> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/data-types/numeric-data-types/double-precision.md).

# DOUBLE PRECISION

## Syntax

```bnf
DOUBLE PRECISION[(M,D)] [SIGNED | UNSIGNED | ZEROFILL]
REAL[(M,D)] [SIGNED | UNSIGNED | ZEROFILL]
```

## Description

`REAL` and `DOUBLE PRECISION` are synonyms for [DOUBLE](/docs/server/reference/data-types/numeric-data-types/double.md).

Exception: If the `REAL_AS_FLOAT` [SQL mode](/docs/server/server-management/variables-and-modes/sql_mode.md) is enabled, `REAL` is a synonym for [FLOAT](/docs/server/reference/data-types/numeric-data-types/float.md) rather than [DOUBLE](/docs/server/reference/data-types/numeric-data-types/double.md).

## EXAMPLES

```sql
CREATE TABLE double_precision_example (
  example DOUBLE PRECISION
);
```

```sql
SHOW CREATE TABLE double_precision_example\G
<</code>>

<<sql>>

*************************** 1. row ***************************
       Table: double_precision_example
Create Table: CREATE TABLE `double_precision_example` (
  `example` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

<sub>*This page is licensed: GPLv2, originally from*</sub> [<sub>*fill\_help\_tables.sql*</sub>](https://github.com/MariaDB/server/blob/main/scripts/fill_help_tables.sql)

{% @marketo/form formId="4316" %}
