MCPcopy Create free account
hub / github.com/PCGen/pcgen / epsilonFloor

Method epsilonFloor

code/src/java/pcgen/core/utils/CoreUtility.java:188–191  ·  view source on GitHub ↗

protect the floor function from the vagaries of floating point precision. @param d the double that we would like the floor value for @return the floor after adding epsilon

(double d)

Source from the content-addressed store, hash-verified

186 * @return the floor after adding epsilon
187 */
188 public static double epsilonFloor(double d)
189 {
190 return Math.floor(d + EPSILON);
191 }
192
193 /**
194 * Changes a path to make sure all instances of \ or / are replaced with

Callers 2

getBonusFeatPoolMethod · 0.95
getNumFeatsFromLevelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected