# numbers and integers in OpenAPI
Source: https://speakeasy.com/openapi/schemas/numbers

The **number/integer** types allows the describing of various number formats through a combination of the **type** and **format** attribute, along with a number of attributes for validating the data, the spec should cover most use cases.

Available formats are:

| Type | Format | Explanation | Example |
| --- | --- | --- | --- |
| number |     | Any number integer/float at any precision. | **10** or **1.9** or **9223372036854775807** |
| number | float | 32-bit floating point number. | **1.9** |
| number | double | 64-bit floating point number. | **1.7976931348623157** |
| integer |     | Any integer number. | **2147483647** or **9223372036854775807** |
| integer | int32 | 32-bit integer. | **2147483647** |
| integer | int64 | 64-bit integer. | 9223372036854775807 |

Below are some examples of defining **number/integer** types:

```yaml