Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[chemclipse-dev] Overflowing problem of Calculations.getSum(int[] values)

In org.eclipse.chemclipse.numeric.statistics.Calculations, the getSum(int[] values) method returns a integer. 
public static int getSum(int[] values)

In some cases, such as a 10000 points scan with 10000 times accumulation. the summation of this scan's total signal might overflow.

How about does this method return a double value? The callers can cast it to float or int as they need.

Best regards,

Trig

Back to the top