We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2775c6 commit 0663d42Copy full SHA for 0663d42
src/main/java/de/redstoneworld/redutilities/math/Calculation.java
@@ -19,10 +19,10 @@ public static long getServerTicksFromMillis(long millis) {
19
* round function of Math always rounds up or down to "1".
20
*
21
* @param input (double) value
22
- * @param x (float) rounding accuracy (e.g. "0.5")
23
- * @return (float) the rounded value
+ * @param x (double) rounding accuracy (e.g. "0.5")
+ * @return (double) the rounded value
24
*/
25
- public static float roundToX(double input, float x) {
26
- return (Math.round(input / x)) * x;
+ public static double roundToX(double input, double x) {
+ return Math.round(input / x) * x;
27
}
28
0 commit comments