Help Center
Help CenterFreeBASIC

Unsignedkeyword

Integer data type modifier

Standard Data Typeskeyworddocumented

Syntax

Dim variable As Unsigned {integer-based data type}

Description


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

Remarks

Dialect Differences


  • Not available in the -lang qb dialect unless referenced with the alias __Unsigned.

Differences from QB


  • New to FreeBASIC

See also


Example


'e.g. notice what is displayed:



Dim x As Unsigned Integer

x = -1

Print x 



'output is 4294967295


Reference

  • Documented in KeyPgUnsigned.html