Lines Matching refs:toFixed
157 // toFixed
159 assertEquals(a, b.toFixed(c));
228 assertEquals("-1000000000000000128", (-1000000000000000128).toFixed());
229 assertEquals("0", (0).toFixed());
230 assertEquals("1000000000000000128", (1000000000000000128).toFixed());
231 assertEquals("1000", (1000).toFixed());
232 assertEquals("0", (0.00001).toFixed());
235 assertEquals("1", 0.5.toFixed(0), "0.5.toFixed(0)");
236 assertEquals("-1", (-0.5).toFixed(0), "(-0.5).toFixed(0)");
237 assertEquals("1.3", 1.25.toFixed(1), "1.25.toFixed(1)");
239 assertEquals("234.2040", (234.20405).toFixed(4), "234.2040.toFixed(4)");
240 assertEquals("234.2041", (234.2040506).toFixed(4));