Const
Casts a number to the Int16 branded type.
number
Int16
Validates that the value is an integer in [-2^15, 2^15) and returns it with the Int16 brand. Throws a TypeError otherwise.
TypeError
The value as an Int16
If the value is not an integer in [-2^15, 2^15)
Casts a
numberto theInt16branded type.Validates that the value is an integer in [-2^15, 2^15) and returns it with the
Int16brand. Throws aTypeErrorotherwise.