---
id: integer-datatype
title: Integer
url: /datatypes/integer/
---

A decimal number with no fractional component.

```abnf
integer = "0" / (["-"] non-zero *digit)
digit =  "0" / positive-digit
non-zero =  "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9"
```

Leading zeros are not allowed, except for the integer 0, which is
represented as the string `0`. Negative values are marked with a leading “-”
character ([UNICODE](@unicode) `0x2D` HYPHEN-MINUS).

***
**EXAMPLE:**

The following examples are all valid integer values:

```
100
0
-200
```
***

---
id: integer-datatype
title: Integer
url: /datatypes/integer/
---

A base 10 number with no fractional component.

```abnf
integer = "0" / (["-"] non-zero *digit)
digit =  "0" / positive-digit
non-zero =  "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9"
```

Leading zeros are not allowed, except for the integer 0, which is
represented as the string `0`. Negative values are marked with a leading “-”
character ([UNICODE](@unicode) `0x2D` HYPHEN-MINUS).

Numeric values such as Infinity and NaN are not permitted.

***
**EXAMPLE:**

The following examples are all valid integer values:

```
100
0
-200
```
***

***
**NOTE:** The integer maximum size is dependent on the implementation.
***

Clarify integers and Infinity and NaN
content(datatypes): Clarify integers and Infinity and NaN

Signed-off-by: Arnau Siches <3ce1c0b0b7032cdfdae7820ed353835a9a8f94c3@digital.cabinet-office.gov.uk>
