Whole document tree
4.12 Hex FloatsGNU CC recognizes floating-point numbers written not only in the usual decimal notation, such as1.55e1 , but also numbers such as
0x1.fp3 written in hexadecimal format. In that format the
0x hex introducer and the p or P exponent field are
mandatory. The exponent is a decimal number that indicates the power of
2 by which the significand part will be multiplied. Thus 0x1.f is
1 15/16, p3 multiplies it by 8, and the value of 0x1.fp3
is the same as 1.55e1 .
Unlike for floating-point numbers in the decimal notation the exponent
is always required in the hexadecimal notation. Otherwise the compiler
would not be able to resolve the ambiguity of, e.g., This document was generated by root on January, 30 2002 using texi2html |