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

Method round

core/src/main/java/edu/mines/jtk/util/MathPlus.java:478–480  ·  view source on GitHub ↗

Returns the closest int to the specified value. The result is the value of the expression (int)Math.floor(a+0.5f) . @param x the value. @return the value rounded to the nearest int.

(float x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

testMethod · 0.45
testMathMethod · 0.45
paintToRectMethod · 0.45
paintToRectMethod · 0.45
paintToRectMethod · 0.45
paintMethod · 0.45
paintToRectMethod · 0.45
paintToRectMethod · 0.45
RectangleFilterMethod · 0.45
indexOfMethod · 0.45
indexOfNearestMethod · 0.45

Calls

no outgoing calls

Tested by 2

testMethod · 0.36
testMathMethod · 0.36