This is an old revision of the document!
ACSUtils defines constants that represent minimum and maximum values that can be stored in memory blocks (variables) of various sizes.
Int is signed 32-bit integer. Unsigned ints don't exist in ACS, so UINT_MAX
can't be expressed.
INT_MIN = -2147483648 (-0x80000000)
– minimum valueINT_MAX = 2147483647 (0x7fffffff)
– maximum valueShorts are 16-bit integers.
SHORT_MIN = -32768
– minimum value of signed shortSHORT_MAX = 32676
– maximum value of signed shortUSHORT_MAX = 65535
– maximum value of unsigned short (minimum is 0)Bytes are 8-bit integers.
BYTE_MIN = -128
– minimum value of signed byteBYTE_MAX = 127
– maximum value of signed byteUBYTE_MAX = 255
– maximum value of unsigned short (minimum is 0)
Fixed-point numbers are 32-bit integers and have the same limits as int
(INT_MIN
and INT_MAX
). But to enable strict typing, there are separate limit constants for fixed
:
FIXED_MIN = (fixed)-0x80000000
– minimum value (-32768.0)FIXED_MAX = (fixed) 0x7fffffff
– maximum value (slightly less than 32767.99999)