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).
Automatic conversions
Int16 widens to Int32, Int64, Int128, Real32, Real64, 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 #format As Format) As Int16
Tries to parse a string that shows as an integer.
If #format is not given or is #Null, it tries to parse str as a decimal (base-10) integer. Or you can make it clear with Format.Base10.
Int16.Size As Int32
Returns the number of available bytes. This is always 2.

Examples

Dim foo As Int16

See also