Home | History | Annotate | Download | only in kde

Lines Matching refs:toFixed

56     s = String(Number(val).toFixed(fractionDigits));
64 shouldBe("Number(1234.567).toFixed(0)","\"1235\"");
65 shouldBe("Number(1234.567).toFixed(undefined)","\"1235\"");
66 shouldBe("Number(-1234.567).toFixed(0)","\"-1235\"");
67 shouldBe("Number(-1234.567).toFixed(undefined)","\"-1235\"");
68 shouldBe("Number(0).toFixed(7)","\"0.0000000\"");
69 shouldBe("Number(0.003).toFixed(0)","\"0\"");
70 shouldBe("Number(-0.003).toFixed(0)","\"-0\"");
71 shouldBe("Number(40.1234567890123).toFixed(7)","\"40.1234568\"");
72 shouldBe("Number(-40.1234567890123).toFixed(7)","\"-40.1234568\"");
73 shouldBe("Number(4).toFixed(7)","\"4.0000000\"");
74 shouldBe("Number(-4).toFixed(7)","\"-4.0000000\"");
75 shouldBe("Number(0.000056).toFixed(7)","\"0.0000560\"");
76 shouldBe("Number(-0.000056).toFixed(7)","\"-0.0000560\"");
77 shouldBe("Number(NaN).toFixed(7)","\"NaN\"");
78 shouldBe("Number(Infinity).toFixed(7)","\"Infinity\"");
79 shouldBe("Number(-Infinity).toFixed(7)","\"-Infinity\"");
80 shouldBe("Number(Math.pow(10,4)).toFixed(13)","\"10000.0000000000000\"");
81 shouldBe("Number(Math.pow(10,17)).toFixed(16)","\"100000000000000000.0000000000000000\"");
82 shouldBe("Number(Math.pow(10,18)).toFixed(17)","\"1000000000000000000.00000000000000000\"");
83 shouldBe("Number(Math.pow(10,19)).toFixed(18)","\"10000000000000000000.000000000000000000\"");
84 shouldBe("Number(Math.pow(10,17)).toFixed(20)","\"100000000000000000.00000000000000000000\"");
85 shouldBe("Number(Math.pow(10,18)).toFixed(20)","\"1000000000000000000.00000000000000000000\"");
86 shouldBe("Number(Math.pow(10,19)).toFixed(20)","\"10000000000000000000.00000000000000000000\"");
87 shouldBe("Number(Math.pow(10,20)).toFixed(20)","\"100000000000000000000.00000000000000000000\"");
88 shouldBe("Number(Math.pow(10,21)).toFixed(20)","\"1e+21\"");
89 shouldBe("Number(-Math.pow(10,4)).toFixed(13)","\"-10000.0000000000000\"");
90 shouldBe("Number(-Math.pow(10,17)).toFixed(16)","\"-100000000000000000.0000000000000000\"");
91 shouldBe("Number(-Math.pow(10,18)).toFixed(17)","\"-1000000000000000000.00000000000000000\"");
92 shouldBe("Number(-Math.pow(10,19)).toFixed(18)","\"-10000000000000000000.000000000000000000\"");
93 shouldBe("Number(-Math.pow(10,17)).toFixed(20)","\"-100000000000000000.00000000000000000000\"");
94 shouldBe("Number(-Math.pow(10,18)).toFixed(20)","\"-1000000000000000000.00000000000000000000\"");
95 shouldBe("Number(-Math.pow(10,19)).toFixed(20)","\"-10000000000000000000.00000000000000000000\"");
96 shouldBe("Number(-Math.pow(10,20)).toFixed(20)","\"-100000000000000000000.00000000000000000000\"");
97 shouldBe("Number(-Math.pow(10,21)).toFixed(20)","\"-1e+21\"");
99 shouldBe("Number(2).toFixed(0)","\"2\"");
100 shouldBe("Number(2).toFixed(20)","\"2.00000000000000000000\"");
103 shouldBe("Number(-2).toFixed(0)","\"-2\"");
104 shouldBe("Number(-2).toFixed(20)","\"-2.00000000000000000000\"");