How to define integer constants in a Control script?

Integer constants without suffixes are default "int" values, with the possible range of -2147483648 to +2147483647.
If a constant is not in this range, the "uint", "long", and "ulong" types could be used, and the constant has to be entered with a suffix.

Supported integer types:

Name Value range Suffix
int -2147483648 to +2147483647  
uint 0 to 4294967295 "U"
long -9223372036854775808 to +9223372036854775807 "L"
ulong 0 to +18446744073709551615 "UL"

For example, to define an "uint" constant, the following form has to be used:
uint uint_max = 4294967295U;

The suffixes could also be used with hexadecimal or octal constants:
uint uint_max = 0xFFFFFFFFU;
uint uint_max = 037777777777U;

Date added:
Last revised:
Hits:
6.470
Rating:
Rating: 2.9. 41 vote(s).
41 anonymous votes
No rating done at all.
Your vote was '' (0 of 5) You are an anonymous user.
You may log on to do personalized votings
Click the rating bar to rate this item Please log on to do ratings
  • Notification

    FE user cannot be identified! (1403201096)