Int32
Int32
The int32
model in Zilla is a type definition used to represent 32-bit integers in configurations. It allows input in textual and binary format and constraints such as value range in regex. It restricts the number to be a multiple of a value. This ensures that 32-bit integer values have the expected formats.
model: int32
Configuration (* required)
multiple
multiple
integer
Restrict the integer to a multiple of a given integer.
Example:
If the multiple
is set to 3, then only integers with a multiple of 3 are allowed, such as -3, 0, 3, 6, etc.
range
range
string
| Pattern:((?:\(|\[))(-?\d+)?,(-?\d+)?((?:\)|\]))
An allowed range of values for the number.
Example:
(-10,10)
For value between -10 and 10 (exclusive).[-10,]
For value between -10 to INT32_MAX or INT64_MAX (inclusive).