MCPcopy Create free account
hub / github.com/ReadyTalk/avian / round

Method round

classpath/java/lang/Math.java:70–72  ·  view source on GitHub ↗
(double v)

Source from the content-addressed store, hash-verified

68 }
69
70 public static long round(double v) {
71 return (long) Math.floor(v + 0.5);
72 }
73
74 public static int round(float v) {
75 return (int) Math.floor(v + 0.5);

Callers 1

mainMethod · 0.95

Calls 1

floorMethod · 0.95

Tested by 1

mainMethod · 0.76