liveBook · Manning

Decimal floating-point constant

As explained in Modern C, Third Edition

A decimal floating-point literal is a C floating-point literal written with decimal digits and optionally a fractional part and decimal exponent.

A decimal floating-point constant is a C numerical literal written with decimal digits and optionally a decimal point or exponent. In scientific notation, mEe means m × 10^e. section 5.3

Scientific notation

The literal 1.7E-13 represents 1.7 × 10^-13. The exponent remains a decimal number even when the significand uses another floating-point notation. section 5.3

How Modern C, Third Edition covers it

How deep it goes
Defines decimal-point and exponent notation, without detailing floating-point evaluation or representation.
Examples
Uses 1.7E-13 for scientific notation and 0.2F, 0.2, and 0.2L for typed forms.
What you can do after
Evaluate/understand decimal floating-point syntax and interpret an exponent as a power of ten.
How it connects
Contrasts decimal floating-point literals with hexadecimal floating-point literals and integer literals.

Also explained in

Compare how 2 books explain decimal floating-point constant →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Modern C, Third Edition. The section links point to the parts of the book it draws on.