Int16 Data Type

Holds signed 16-bit (2-byte) integer values in the range −32,768 – +32,767.

Instructions

Default value
When you declare a variable of type Int16 and do not initialize it,, its default value is zero (0).
Type changes
Int16 widens to Int32, Int, Int64, Int128, Real32, Real64, Real, or Real128 without risk of overflow.
Type characters
Int16 has no type characters.

Shared methods and properties

Int16.Default As Int16
Returns the default value, 0.
Int16.Max As Int16
Returns the maximum positive value.
Int16.Min As Int16
Returns the minimum negative value.
Int16.Parse(str As String, Optional #fmt As Format) As Int16
Tries to parse a string that shows as an integer.
If #fmt is not given or is #Null, then it tries to parse str as a decimal (base-10) integer. Or you can be explicit with Format.Base10.
Int16.Size As Int
Returns the number of available bytes. This is always 2.

Examples

Dim foo As Int16

See also