Hex

Hex

KRL supports hexadecimal values represented as strings matching the regex /^0x[A-F0-9]+$/. When entering hex numbers, use the 0x prefix to ensure they’re interpolated correctly. You can use the as() operator to cast numbers to hex values and hex values to numbers.