CUNSG


Converts an expression to unsigned

Syntax:
Cunsg ( expression )

Usage:
variable = Cunsg ( expression )
Converts a signed expression to an unsigned one, useful to force unsigned behavior of division or multiplication (including with Shl and Shr).

This is the opposite of Csign.

Examples:
Dim value As Short = -1
Print CUnsg(value)  '' will print 65535

Dialect Differences:
Differences from QB:
See also:
Back to Converting Data Types
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode