Hexadecimal, octal and binary float literals are also supported. These consist of a hexadecimal, octal or binary literal with a decimal point and a mandatory base-two exponent expressed as a decimal number after p or P:
8.0 0x1.0p3 = . t
-1024.0 -0x1.0P10 = . t
10.125 0x1.44p3 = . t
10.125 0b1.010001p3 = . t
10.125 0o1.21p3 = . t
The normalized hex form ±0x1.MMMMMMMMMMMMMp±EEEE allows any floating-point number to be specified precisely. The values of MMMMMMMMMMMMM and EEEE map directly to the mantissa and exponent fields of the binary IEEE 754 representation.
More information on floats can be found in Floats.