Int8
Data Type
Holds signed 8-bit (1-byte) integer values in the range −128 – +127.
Instructions
- Default value
- When you declare a variable of type
Int8
and do not initialize it, its default value is zero (0). - Automatic conversions
Int8
widens toInt16
,Int32
,Int64
,Int128
,Real32
,Real64
, orReal128
without risk of overflow.- Type characters
- You can put the suffix
i8
(orI8
) on the end of an integer literal. But there are no type characters for names.
Shared methods and properties
Int8.Default As Int8
- Returns the default value,
0
. Int8.Max As Int8
- Returns the maximum positive value.
Int8.Min As Int8
- Returns the minimum negative value.
Int8.Parse(str As String, Optional #format As Format) As Int8
- Tries to parse a string that shows as an integer.
- If
#format
is not given or is#Null
, it tries to parsestr
as a decimal (base-10) integer. Or you can make it clear withFormat.Base10
. Int8.Size As Int32
- Returns the number of available bytes. This is always one (1).
Examples
Dim foo As Int8