### Question:
MathUtils { public static float round3Digits (float x) { return (float) Math.floor(x * 1000.0f) / 1000.0f; } protected  MathUtils(); static float round3Digits(float x); static boolean overlapping(float minA, float maxA, float minB, float maxB);  }### Answer:
@Test public void testRound () { assertEquals(0f, MathUtils.round3Digits(1.5259022E-5f), 0.00000001f); assertEquals(0f, MathUtils.round3Digits(0.0001f), 0.00000001f); assertEquals(0f, MathUtils.round3Digits(0.000001f), 0.00000001f); assertEquals(0.001f, MathUtils.round3Digits(0.001f), 0.00000001f); assertEquals(1f, MathUtils.round3Digits(1.000000f), 0.00000001f); assertEquals(0.5f, MathUtils.round3Digits(0.500000f), 0.00000001f); }