Value Representations
Values can be entered in binary (base-2), quaternary (base-4), decimal (base-10), hexadecimal (base-16), or character formats. Numerical values can also use underscores, '_', as a group separator to clarify numbers. The following are examples of these formats.
Type of Value | Base | Examples |
---|---|---|
Binary | 2 | %1010 –or– %11110000_10101100 |
Quaternary | 4 | %%2130_3311 –or– %%3311_2301_1012 |
Decimal (integer) | 10 | 1024 –or– 2_147_483_647 –or–- 25 |
Decimal (floating-point) | 10 | 1e6 –or– 1.000_005 –or– -0.70712 |
Hexadecimal | 16 | $1AF –or– $FFAF_126D_8755 |
Character | N/A | "A" |
Character String | N/A | "ABCDEFG" |
Null-Terminated String | N/A | "ABCDEFG",0 –or– string("ABCDEFG") For more info, see STRING. |
Separators can be used in place of commas (in decimal values) or to form logical groups, such as nibbles, bytes, words, etc.
Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.