4 ms·
Just go back 10% after computing 2C and the result is exact. If you don't want to deal with non-integers, round to the nearest integer when taking 10%. The fina
by tzs 7y ago
Just go back 10% after computing 2C and the result is exact. If you don't want to deal with non-integers, round to the nearest integer when taking 10%. The final result will be the exact result rounded to the nearest integer.
Example: 22℃ -> 44 - 4 + 32 -> 72℉. (Exact is 71.6℉)
Example: 23℃ -> 46 - 5 + 32 -> 73℉. (Exact is 73.2℉)
I've seen people do the going back 10% before the doubling. That's fine if you are not going to round. If you are going to round, take off the 10% after the doubling or you could end up off by up to 1℉ for the final rounded amount.
For example, 26℃ with rounding after -> 52 - 5 + 32 = 79℉ (78.8℉ exact). With rounding before it goes -> (26 - 3) + 32 = 78℉.