Non-Confidential | ![]() | ARM DUI0375F | ||
| ||||
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 }
%a
and %A
format for
printf()
.