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)
| 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 |
no outgoing calls
no test coverage detected