@Test public void ceilToTest() throws Exception { assertEquals( 0.6d, Round.ceilTo(0.54d, 0.1d), 0.00000001d ); assertEquals( 2d, Round.ceilTo(1.49999d, 1d), 0.00000001d ); assertEquals( 0d, Round.ceilTo(0d, 1d), 0.00000001d ); }
public static Double ceilTo(Double x, Double step) { if (x != 0d) { return Math.ceil(x / step) * step; } return 0d; }
Round { public static Double ceilTo(Double x, Double step) { if (x != 0d) { return Math.ceil(x / step) * step; } return 0d; } }
Round { public static Double ceilTo(Double x, Double step) { if (x != 0d) { return Math.ceil(x / step) * step; } return 0d; }  }
Round { public static Double ceilTo(Double x, Double step) { if (x != 0d) { return Math.ceil(x / step) * step; } return 0d; }  static Double roundTo(double x, Double step); static Double floorTo(Double x, Double step); static Double ceilTo(Double x, Double step); }
Round { public static Double ceilTo(Double x, Double step) { if (x != 0d) { return Math.ceil(x / step) * step; } return 0d; }  static Double roundTo(double x, Double step); static Double floorTo(Double x, Double step); static Double ceilTo(Double x, Double step);  }