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 toInt
,Int64
,Int128
,Real32
,Real64
,Real
, orReal128
without risk of overflow.- Type characters
Int32
has no type character.
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
, then it tries to parsestr
as a decimal (base-10) integer. Or you can make it clear withFormat.Base10
. Int32.Size As Int
- Returns the number of available bytes. This is always 4.
Examples
Dim foo As Int32