Int32 Data Type

Holds signed 32-bit (4-byte) integer values in the range −2,147,483,648 – +2,147,483,647.

Instructions

Default value
When you declare a variable of type Int32 and do not initialize it, its default value is zero (0).
Automatic conversions
Int32 widens to Int64, Int128, Real32, Real64, or Real128 without risk of overflow.
Type characters
You can put the suffix i32 (or I32) on the end of an integer literal. And you can put the percent sign (%) on the end of a name..

Shared methods and properties

Int32.Default As Int32
Returns the default value, 0.
Int32.Max As Int32
Returns the maximum positive value.
Int32.Min As Int32
Returns the minimum negative value.
Int32.Parse(str As String, Optional #format As Format) As Int32
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.
Int32.Size As Int32
Returns the number of available bytes. This is always 4.

Examples

Dim foo As Int32
Dim bar%

See also