MCPcopy Create free account
hub / github.com/dabing1022/Blog / rint

Method rint

Processing/game2dai/maths/FastMath.java:3753–3770  ·  view source on GitHub ↗

Get the whole number that is the nearest to x, or the even one if x is exactly half way between two integers. @param x number from which nearest whole number is requested @return a double number r such that r is an integer r - 0.5 <= x <= r + 0.5

(double x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

floorMethod · 0.95

Tested by

no test coverage detected