According to Swift Programming Language:
For example, 0xFp2 represents 15 β¨ 2 ^ 2, which corresponds to 60. Similarly, 0xFp-2 represents 15 β¨ 2 ^ (- 2), which is 3.75.
Why is 2 used as the basis for the indicator instead of 16? I would expect 0xFp2 == 15 * (16**2) instead of 0xFp2 == 15 * (2**2)
source share