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.
The separate additions give x2=16777218x_2=16777218x2=16777218, since the two unit increments eventually accumulate.
The next representable value above AAA is 167772171677721716777217, so an increment of one is retained.
The combined addition gives y=16777218y=16777218y=16777218, since the exact sum is representable in binary32.
The separate additions give x2=16777216x_2=16777216x2=16777216, since each midpoint rounds back to the initial value.
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.
Sequence a floating-point addition
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.
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.