A software model adds two normal binary floating-point values. It retains every intermediate bit until a single rounding to the destination precision, using round to nearest, ties to even.
The exact sum is nonzero, and both the exact and rounded sums are within the normal range. Order the actions in the model's addition procedure. The final action includes a check even when no correction is needed.
1.
Align the input significands to the larger input exponent, retaining all shifted bits.
2.
Check whether rounding produced a significand of two; if so, divide it by two and increase the exponent by one.
3.
Add the signed aligned significands using their common exponent.
4.
Normalize the exact nonzero sum to have one leading binary digit before the point, adjusting its exponent.
5.
Round the normalized significand to the destination precision using round to nearest, ties to even.
Unlock full course notes by signing up
Round a midpoint and measure its error
A teaching processor stores voltages in a binary floating-point format with four significant binary bits, including the leading one. Its exponent range includes all values needed here, and it uses round-to-nearest, ties-to-even. An exact input voltage is 1.6875 V1.6875\ \text{V}1.6875 V. Find the stored voltage and the signed representation error, defined as stored voltage minus exact voltage. Give the stored voltage in volts to two decimal places and the signed error in volts to four decimal places.
Which decimal fractions fit exactly?
A numerical program stores the decimal values below using binary32. A value is exactly representable when its stored value equals the specified mathematical value without rounding error.
Enter yes or no for each value. Treat the decimal values as exact. All are within the normal exponent range; binary32 provides 24 significant binary digits.
Why unit increments can disappear
A data logger stores a sample count as an IEEE 754 binary32 value. Initially, A=224=16777216A=2^{24}=16777216A=224=16777216. Every addition is rounded immediately to binary32 using round-to-nearest, ties-to-even, with no extra intermediate precision. Define fl\operatorname{fl}fl as this rounding operation, and calculate
Which statements are true? Select all that apply.
Subtract nearly equal rounded inputs
An engineering script tests a simplified binary floating-point format with five significant binary digits, including the leading one. Normal values have the form
The exponent range is sufficient for every value in this problem. Each input is rounded independently to nearest, ties to even, before subtraction. The subtraction result is then rounded using the same rule.