Signed variable
Jump to navigation
Jump to search
A signed variable is a data type used within the NetHack source code. Its use is reponsible for the many seemingly non-round numbers found as limits within the game. For example, the lowest AC attainable is -128, because the AC value is stored in a signed char variable (schar
) which can (on most platforms) store up to 256 values: 127 positive numbers, zero, and 128 negative numbers.
- This page is a stub. Should you wish to do so, you can contribute by expanding this page.
A user has suggested improving this page or section as follows:
"Would a C-head like to clarify "on most platforms", and expand this article to explain other data types?"