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`.
Example
`
Dim value As Short = -1
Print CUnsg(value) '' will print 65535
`
Dialect Differences

- Not available in the -lang qb dialect unless referenced with the alias `__Cunsg`.

Differences from QB

- New to FreeBASIC

See also

- `CSign`