MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / trim

Method trim

onjava/Rand.java:174–174  ·  view source on GitHub ↗
(double d)

Source from the content-addressed store, hash-verified

172 }
173 }
174 static double trim(double d) {
175 return
176 ((double)Math.round(d * 1000.0)) / 100.0;
177 }

Callers 9

toStringMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
fillBinMethod · 0.80
getMethod · 0.80
getMethod · 0.80
getAsDoubleMethod · 0.80
arrayMethod · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected