MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / sum

Method sum

spotbugsTestCases/src/java/TestFloatEquality.java:71–76  ·  view source on GitHub ↗
(double n)

Source from the content-addressed store, hash-verified

69 }
70
71 double sum(double n) {
72 double result = 0;
73 for (double count = 0.0; count != n; count += 0.1)
74 result += count;
75 return result;
76 }
77
78 public static final double MY_DOUBLE = 4.5;
79

Callers 3

writeXMLMethod · 0.45
makeGridMethod · 0.45
makeCompactGridMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected