19 lines
291 B
Markdown
19 lines
291 B
Markdown
# Int
|
|
|
|
`Int` is the primitive type constraint for integer values.
|
|
|
|
## Examples
|
|
|
|
```dcdl
|
|
retry = Int default 3;
|
|
port = Int & >= 1 & <= 65535;
|
|
```
|
|
|
|
## Constraint composition
|
|
|
|
`Int` can be composed with numeric comparison constraints.
|
|
|
|
```dcdl
|
|
NarrowedPort = Int & >= 1 & <= 65535 & > 443;
|
|
```
|