MCPcopy Create free account
hub / github.com/dhale/jtk / cmp

Method cmp

core/src/main/java/edu/mines/jtk/util/Almost.java:262–299  ·  view source on GitHub ↗

Check order of two numbers, within precision. @param r1 First number to check @param r2 Second number to check @return 1 if r1 > r2; -1 if r1 < r2; 0 if r1==r2, within precision.

(final double r1, final double r2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

testEverythingMethod · 0.95
betweenMethod · 0.95
equalMethod · 0.95
ltMethod · 0.95
leMethod · 0.95
gtMethod · 0.95
geMethod · 0.95
compareMethod · 0.95
compareToMethod · 0.80

Calls

no outgoing calls

Tested by 1

testEverythingMethod · 0.76