> 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/number.md).

# NUMBER

Oracle-compatible synonym for DECIMAL. This type is used for fixed-point arithmetic.

```sql
NUMBER[(M[,D])] [SIGNED | UNSIGNED | ZEROFILL]
```

In [Oracle mode](https://mariadb.com/docs/server/editions-and-compatibility/comparisons-with-other-databases/sql_modeoracle.md), `NUMBER` is a synonym for [DECIMAL](https://mariadb.com/docs/server/reference/data-types/numeric-data-types/decimal.md).

## EXAMPLES

Number\_Example

```sql
SET sql_mode='oracle';
```

```
CREATE TABLE number_example (
  example NUMBER
);
```

```sql
SHOW CREATE TABLE number_example\G
```

```sql
*************************** 1. row ***************************
       Table: number_example
Create Table: CREATE TABLE "number_example" (
  "example" double DEFAULT NULL
)
```

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

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