Sfairadora

  • Reference Guide

unsigned

unsigned(n)
The parameter n is a value of a signed integer type. The operator reinterprets the binary pattern of the parameter, which is represented as two’s complement, as if it were an unsigned number. For unsigned numbers, the operator returns always the unchanged value. The correspondence between unsigned type of the parameter and the signed type of the result is following: Int8–Byte, Int16–Word, Int (Int32)–Dword, Int64–Qword.
Examples:
unsigned([Int8]–1) = 255
unsigned([Int8]100) = 100

See Also