Non-Confidential | ![]() | ARM DUI0375E | ||
| ||||
Home > Compiler Coding Practices > Hexadecimal floating-point numbers in C99 |
C99 supports floating-point numbers that can be written in hexadecimal format.
float hex_floats(void) { return 0x1.fp3; // 1 15/16 * 2^3 }
0x1.fp3=
1.9375*8=1.55e1
.%a
and %A
format for
printf()
.