, C99, :
0[xX]([a-fA-F0-9]*[.][a-fA-F0-9]+|[a-fA-F0-9]+[.]?)[pP][+-]?[0-9]+[flFL]?
4 :
0[xX]: , 2:
0x
0X
([a-fA-F0-9]*[.][a-fA-F0-9]+|[a-fA-F0-9]+[.]?): , :
34.2f
.de
b3.
( ), :
2f4
10
.
[pP][+-]?[0-9]+: binary part of the exponent (indicated in decimal form), for example:
p-4
p20
We will indicate the hexadecimal constant with a floating point, indicating the mantissa in hexadecimal, and the exponent b (for base 2) decimal.
[flFL]?: optional floating suffix to indicate type ( float, doubleor long double).
source
share