I was asked this question during a java interview: I needed to find out the sum of the elements in a float array. The elements, however, are made up of very large and very small numbers, the question is, how can I guarantee the accuracy of the summary?
I assume that this requires some decent understanding of the implementation of Float in Java, which I, unfortunately, do not have, or is this a reasonable question?
source
share