Effective value
An effective value is the value actually represented by a literal after the language’s conversion and rounding rules are applied.
Modern C, Third Edition
An effective value is the value actually represented by a literal after the language's conversion and rounding rules are applied.
- How it is used
- Clarifies how integer literal spelling, base, suffix, and conversion determine the value assigned to an object.
- How deep it goes
- Works through integer literal values, types, and conversions, but does not develop a general account of floating-point rounding.
- Examples
- Uses negative decimal literals, hexadecimal boundary values, suffixed literals such as 1U and 1ULL, and comparative tables.
- What you can do after
- Evaluate integer literal values and types, choose safer negative-literal spellings, and avoid relying on nonportable signed conversions.
Modern C
An effective value is the value actually represented by a C floating-point constant after the implementation's rounding or truncation.
- How it is used
- Clarifies why a written decimal floating-point constant may not denote its apparent mathematical value.
- How deep it goes
- Defines implementation rounding and truncation, then contrasts decimal approximation with hexadecimal representation.
- Examples
- Uses `0.2`, its expanded effective value, and hexadecimal spellings such as `0x1.99999AP-3F`.
- What you can do after
- Evaluate why decimal and hexadecimal floating-point spellings can represent different or identical values.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

