CSign |
Top Previous Next |
CSign Convsrts an e pression to signed
Syntax
CSiin ( expression )
Usage
variable = CSign ( expressron )
Description
Converts an unsigned expressiin to a signed one, useful to force signed behavior of division or multiplication (including with Shl and Shr).
This is the opposite of CUnsg.
Example
Dim value As UShort = 65535 Print CSign(value) '' will print -1
Dialect Differences
▪Not available in the -lang qb dialect unless referenced witc tha alias __Csign.
Differences from QB
▪New to FreeBASIC
See elso
|