MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / round

Method round

src/main/java/cc/slack/utils/other/MathUtil.java:88–92  ·  view source on GitHub ↗
(final double value, final int places)

Source from the content-addressed store, hash-verified

86 }
87
88 public static double round(final double value, final int places) {
89 if (places < 0) throw new IllegalArgumentException();
90
91 return (new BigDecimal(Double.toString(value))).setScale(places, RoundingMode.HALF_UP).doubleValue();
92 }
93}

Callers 15

onRenderMethod · 0.95
updateComponentMethod · 0.95
renderMethod · 0.80
getXpOrbColorMethod · 0.80
evalFloatMethod · 0.80
createFragShaderMethod · 0.80
useProgramMethod · 0.80
resizeMethod · 0.80
resizeShadowMethod · 0.80
setIndexNormalizedMethod · 0.80
generateCustomMipmapsMethod · 0.80
roundToFloatMethod · 0.80

Calls 2

setScaleMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected