Unsigned
Integer data type modifier
Forces an integer-based data type to be unsigned (cannot contain negative numbers, but has its maximum value doubled).
Syntax
Description
Forces an integer-based data type to be unsigned (cannot contain negative numbers, but has its maximum value doubled).
Example
'e.g. notice what is displayed:
Dim x As Unsigned Integer
x = -1
Print x
'output is 4294967295
Dim x As Unsigned Integer
x = -1
Print x
'output is 4294967295
Dialect Differences
- Not available in the -lang qb dialect unless referenced with the alias __Unsigned.
Differences from QB
- New to FreeBASIC
See also