Lines Matching refs:round
28 assertEquals(0, Math.round(0));
29 assertEquals(-0, Math.round(-0));
30 assertEquals(Infinity, Math.round(Infinity));
31 assertEquals(-Infinity, Math.round(-Infinity));
32 assertNaN(Math.round(NaN));
34 assertEquals(1, Math.round(0.5));
35 assertEquals(1, Math.round(0.7));
36 assertEquals(1, Math.round(1));
37 assertEquals(1, Math.round(1.1));
38 assertEquals(1, Math.round(1.49999));
39 assertEquals(1/-0, 1/Math.round(-0.5)); // Test for -0 result.
40 assertEquals(-1, Math.round(-0.5000000000000001));
41 assertEquals(-1, Math.round(-0.7));
42 assertEquals(-1, Math.round(-1));
43 assertEquals(-1, Math.round(-1.1));
44 assertEquals(-1, Math.round(-1.49999));
45 assertEquals(-1, Math.round(-1.5));
47 assertEquals(9007199254740990, Math.round(9007199254740990));
48 assertEquals(9007199254740991, Math.round(9007199254740991));
49 assertEquals(-9007199254740990, Math.round(-9007199254740990));
50 assertEquals(-9007199254740991, Math.round(-9007199254740991));
51 assertEquals(Number.MAX_VALUE, Math.round(Number.MAX_VALUE));
52 assertEquals(-Number.MAX_VALUE, Math.round(-Number.MAX_VALUE));