Correctness of fixed and scientific decimal output #
The notation scanner recovers the decimal value selected by rounding. Fixed output has at most half a decimal place of nearest-even error; scientific output inherits the significant-digit bound. Neither decimal-point placement nor exponent notation introduces additional rounding.
Nearest-even rounding on any decimal grid changes the value by at most half a grid unit.
Either decimal notation denotes the original decimal, without an extra rounding step.
The characters denote precisely the value selected by decimal rounding.
Choosing notation and precision preserves the sign, including when the result is zero.
Inexact is set exactly when the decimal rounding changes the numerical value.
Decimal text has unbounded exponents; output rounding can raise only inexact.
A finite model's output denotes its exact dyadic value rounded to the selected decimal grid.
The actual fixed-point string has at most half a last-place unit of nearest-even error.
The actual scientific string inherits the nearest-even significant-digit error bound.