There are tricks you can use to improve accuracy when adding up a lot of float
s.
For example, you can use a long
to hold the "whole" part of the sum, and a float
to hold the fractional part.
There are tricks you can use to improve accuracy when adding up a lot of float
s.
For example, you can use a long
to hold the "whole" part of the sum, and a float
to hold the fractional part.