CSIGN


Converts an expression to signed

Syntax:
Csign ( expression )

Usage:
variable = Csign ( expression )

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

This is the opposite of Cunsg.

Examples:
Dim value As UShort = 65535
Print CSign(value)  '' will print -1


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



sf.net phatcode