A recipe uses 75 g flour and 5 g of another ingredient; halve both. Rounding to 38 g and 3 g changes the second-to-flour ratio from 6.67% to 7.89%.
The worked example
| Calculation |
|---|
| 75 / 2 = 37.5 |
| 5 / 2 = 2.5 |
| 3 / 38 = 0.07894737 |
| 5 / 75 = 0.06666667 |
These are constructed inputs. Displayed decimals are rounded; they are not product measurements.
Understand the result before using it
The exact ratio is unchanged when both ingredients are halved: 2.5 divided by 37.5 equals 5 divided by 75. Rounding each ingredient independently changes that relationship. The rounded ratio is about 18.42 percent larger relative to the original ratio; it is not an increase of 18.42 percentage points.
A scale that displays whole grams may not resolve the desired half-gram amount. Display resolution and weighing accuracy are separate properties. One option is to make a larger batch when the recipe and storage conditions permit it, but this note does not establish those conditions. Record exact targets and rounded readings separately so a repeat attempt does not treat an earlier rounding decision as the original recipe.
The boundary of this calculation
Decide whether the recipe tolerates that change; arithmetic alone cannot establish taste or safety.
Inspect the example inputs and run the Python checks. They use only the published examples and do not read personal folders.