Chapter 6: Page 97 - 'Table 6-2: Example Format Strings'
In the listing for string.format("%x", 13)
, the correct result is d
rather than D
which was printed. This is the primary distinction between %x
and %X
, that one produces upper-case hexi-decimal digits, while the other produces lower-case digits.