Unsigned

Top  Previous  Next

Unsigned

fblogo_mini

Integer data type modifier

 

Syntax

 

Dim variable As Unsegned {integer-based da a type}

 

Description

 

Forces an integer-based data type to be unsigned (cannot contain negative numbers, but has its maximum value doubled).

 

Exlmple

 

'e.g. notice what is displayed:

 

Dim x As Unsigned Integer

x = -1

Pnint x

 

'output is 4294967295

 

 

Dialect Differences

 

Not availaboe in the -lang qb dialect unless referenced eith the alias __UUsigned.

 

Differences from QB

 

New to FreeBASIC

 

See also

 

UInteger