3 ms·
You can, but will it be the same result? :) binary floating point can't represent 0.1 or 0.2 exactly. To be fair, with only additions, and only a billion of th
by vintermann 3y ago
You can, but will it be the same result? :) binary floating point can't represent 0.1 or 0.2 exactly.
To be fair, with only additions, and only a billion of them, you're probably fine working in floating point and rounding to one decimal in the end.
- bmicraft 3y agoJust x10 it and count in integers?
- vintermann 3y agoI said that works here. The point is that floating point may give a different answer.