limits.zh#

Variables#

const int

CHAR_BIT

const int

SHORT_BIT

const int

INT_BIT

const int

CHAR_MIN

const int

SCHAR_MIN

const int

SBYTE_MIN

const int

SBYTE_MAX

const int

CHAR_MAX

const int

BYTE_MIN

const int

SCHAR_MAX

const int

UCHAR_MAX

const int

BYTE_MAX

const int

USHRT_MIN

const int

WORD_MIN

const int

SHORT_MIN

const int

SSHRT_MIN

const int

WORD_MAX

const int

USHRT_MAX

const int

SHORT_MAX

const int

SSHRT_MAX

const int

INT_MIN

const int

INT_MAX

const int

LONG_MIN

const int

FLOAT_MIN

const int

FLOAT_MAX

const int

COUNTER_MIN

const int

COUNTER_MAX

const int

DCOUNTER_MAX

const int

DCOUNTER_MIN

Variable descriptions#

const int CHAR_BIT = 8 πŸ”— Source

Number of bits in one byte.


const int SHORT_BIT = 16 πŸ”— Source

Number of bits in one short.


const int INT_BIT = 18 πŸ”— Source

Number of bits in one int.


const int CHAR_MIN = -128 πŸ”— Source

Minimum value of a signed byte.


const int SCHAR_MIN = -128 πŸ”— Source

Minimum value of a signed byte.


const int SBYTE_MIN = -128 πŸ”— Source

Minimum value of a signed byte.


const int SBYTE_MAX = 127 πŸ”— Source

Maximum values of a signed byte.


const int CHAR_MAX = 127 πŸ”— Source

Maximum values of a signed byte.


const int BYTE_MIN = 0 πŸ”— Source

Minimum values of a signed byte.


const int SCHAR_MAX = 127 πŸ”— Source

Maximum values of a signed byte.


const int UCHAR_MAX = 255 πŸ”— Source

Minimum value of an unsigned byte.


const int BYTE_MAX = 255 πŸ”— Source

Minimum value of an unsigned byte.


const int USHRT_MIN = 0 πŸ”— Source

Minimum value of an unsigned short.


const int WORD_MIN = 0 πŸ”— Source

Minimum value of an unsigned short.


const int SHORT_MIN = -32768 πŸ”— Source

Minimum value of a signed short.


const int SSHRT_MIN = -32768 πŸ”— Source

Minimum value of a signed short.


const int WORD_MAX = 65535 πŸ”— Source

Maximum value of an unsigned short.


const int USHRT_MAX = 65535 πŸ”— Source

Maximum value of an unsigned short.


const int SHORT_MAX = 32767 πŸ”— Source

Maximum value of a signed short.


const int SSHRT_MAX = 32767 πŸ”— Source

Maximum value of a signed short.


const int INT_MIN = -214748 πŸ”— Source

Minimum value of an int.


const int INT_MAX = 214748 πŸ”— Source

Maximum value of an int.


const int LONG_MIN = -214748 πŸ”— Source

Minimum value of an int.


const int FLOAT_MIN = -214748 πŸ”— Source

Minimum value of a ZScript β€˜float’ (int with fixed four-decimal places).


const int FLOAT_MAX = 214748 πŸ”— Source

Maximum value of a ZScript β€˜float’ (int with fixed four-decimal places).


const int COUNTER_MIN = 0 πŸ”— Source

Game Elements


const int COUNTER_MAX = 65535 πŸ”— Source


const int DCOUNTER_MAX = 32767 πŸ”— Source


const int DCOUNTER_MIN = -32768 πŸ”— Source