# int16

When a variable is classified as an `int16` in the schema then it will be classified as an integer with a size of 16 bits or 2 bytes. The range of values is from `-32768` to `+32767`.

```yaml
# int16 type variable
# all the inputs from -32768 to +32767 will be accepted
TestNumber:{type: int16}
---
~ -32750 # valid
~ 12585  # valid
~ 32765  # valid
~ 32768  # invalid
~ -32770 # invalid

```

### Member Def

The `int16` is derived from the number type that shares the same[ MemberDef ](/schema-definition-language/data-types/number.md#memberdef)as the Number i.e `type`, `default`, `choices`, `max`, `min`, `multipleOf`, `divisibleBy`, `optional` and `null` while enforcing the additional constraint that the number must be of `int16` type.

By default the `max` value of `byte` type variable is `+32767` and and `min` is `-32767`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.internetobject.org/schema-definition-language/data-types/number/derived-types/int16.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
