Home
last modified time | relevance | path

Searched refs:toFixed (Results 1 – 25 of 55) sorted by relevance

123

/external/v8/test/mjsunit/
Dnumber-tostring-small.js151 (NaN).toFixed(2);
152 (1/0).toFixed(2);
153 (-1/0).toFixed(2);
155 (1111111111111111111111).toFixed(8);
156 (0.1).toFixed(1);
157 (0.1).toFixed(2);
158 (0.1).toFixed(3);
159 (0.01).toFixed(2);
160 (0.01).toFixed(3);
161 (0.01).toFixed(4);
[all …]
Dnumber-tostring.js149 assertEquals("NaN", (NaN).toFixed(2));
150 assertEquals("Infinity", (1/0).toFixed(2));
151 assertEquals("-Infinity", (-1/0).toFixed(2));
153 assertEquals("1.1111111111111111e+21", (1111111111111111111111).toFixed(8));
154 assertEquals("0.1", (0.1).toFixed(1));
155 assertEquals("0.10", (0.1).toFixed(2));
156 assertEquals("0.100", (0.1).toFixed(3));
157 assertEquals("0.01", (0.01).toFixed(2));
158 assertEquals("0.010", (0.01).toFixed(3));
159 assertEquals("0.0100", (0.01).toFixed(4));
[all …]
Dnumber-tostring-func.js159 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)");
[all …]
Derror-tostring-omit.js45 Number.prototype.toFixed.call(veryLongString); method in Number
Dlength.js45 assertEquals(1, Number.prototype.toFixed.length, "Number.prototype.toFixed.length");
Dmessages.js427 Number(1).toFixed(100);
Dfunction-call.js87 Number.prototype.toFixed,
/external/v8/test/webkit/fast/js/
Dnumber-tofixed-expected.txt24 This test checks a few Number.toFixed cases, including 5307: Number.toFixed does not round 0.5 up a…
29 PASS (0).toFixed(0) is '0'
30 PASS (0.49).toFixed(0) is '0'
31 PASS (0.5).toFixed(0) is '1'
32 PASS (0.51).toFixed(0) is '1'
33 PASS (-0.49).toFixed(0) is '-0'
34 PASS (-0.5).toFixed(0) is '-1'
35 PASS (-0.51).toFixed(0) is '-1'
36 PASS (0).toFixed(1) is '0.0'
37 PASS (0.449).toFixed(1) is '0.4'
[all …]
/external/v8/test/mjsunit/regress/
Dregress-2443.js36 assertThrows(function() { Number.prototype.toFixed.call({}) }, method in Number
61 Number.prototype.toFixed.call(x_obj, 2));
71 Number.prototype.toFixed.call(1, 2));
117 assertThrows(function() { Number.prototype.toFixed.call(NaN, f_obj) }, method in Number
122 assertThrows(function() { Number.prototype.toFixed.call(1/0, f_obj) }, method in Number
127 assertThrows(function() { Number.prototype.toFixed.call(-1/0, f_obj) }, method in Number
/external/v8/test/webkit/fast/js/kde/
DNumber-expected.txt52 PASS Number(1234.567).toFixed(0) is "1235"
53 PASS Number(1234.567).toFixed(undefined) is "1235"
54 PASS Number(-1234.567).toFixed(0) is "-1235"
55 PASS Number(-1234.567).toFixed(undefined) is "-1235"
56 PASS Number(0).toFixed(7) is "0.0000000"
57 PASS Number(0.003).toFixed(0) is "0"
58 PASS Number(-0.003).toFixed(0) is "-0"
59 PASS Number(40.1234567890123).toFixed(7) is "40.1234568"
60 PASS Number(-40.1234567890123).toFixed(7) is "-40.1234568"
61 PASS Number(4).toFixed(7) is "4.0000000"
[all …]
DNumber.js56 s = String(Number(val).toFixed(fractionDigits));
/external/v8/tools/profviz/
Dprofviz.js263 ui.range_start.value = args.start.toFixed(1);
264 ui.range_end.value = args.end.toFixed(1);
Dworker.js92 time("Reading log file (" + (file.size / 1024).toFixed(1) + " kB)",
Dcomposer.js430 percentages[name] = (sum / (range_end - range_start) * 100).toFixed(1);
463 ytics.push('"max deopt size: ' + (max_deopt_size / 1024).toFixed(1) +
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/benchmark/
Dindex.js31 …console.log('Working copy is x' + (this[0].hz / this[1].hz).toFixed(2) + ' times faster vs upstrea…
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dnumber-handler.js18 return x.toFixed(3).replace('.000', '');
/external/chromium-trace/catapult/telemetry/third_party/WebKit/PerformanceTests/resources/
Dstatistics.js64 supportedLevels.push((1 - (1 - quantile) * 2).toFixed(2));
/external/v8/tools/
Dtickprocessor.js543 ? padLeft((ticks * 100 / nonLibTicks).toFixed(1), 5) + '% '
546 padLeft(pct.toFixed(1), 5) + '% ' +
557 TickProcessor.CALL_PROFILE_CUTOFF_PCT.toFixed(1) +
630 padLeft(rec.parentTotalPercent.toFixed(1), 5) + '% ' +
/external/owasp/sanitizer/empiricism/
Dhtml-containment.js69 progressCounter.style.width = (100 * ratio).toFixed(2) + '%';
82 ? 'ETA:' + (eta / 1000).toFixed(1) + 's' : '';
/external/webrtc/webrtc/tools/loopback_test/
Dadapter.js26 console.log((performance.now() / 1000).toFixed(3) + ": " + text);
/external/v8/benchmarks/
Dbase.js161 return value.toFixed(0);
/external/chromium-trace/catapult/third_party/flot/
Dexcanvas.js1289 var skewM = m[0][0].toFixed(3) + ',' + m[1][0].toFixed(3) + ',' +
1290 m[0][1].toFixed(3) + ',' + m[1][1].toFixed(3) + ',0,0';
Dexcanvas.min.js1 …:0},{x:ar,y:i.size})}var an=ao[0][0].toFixed(3)+","+ao[1][0].toFixed(3)+","+ao[0][1].toFixed(3)+",…
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/blink/interpolation/resources/
Dinterpolation-test.js138 return (parseFloat(n).toFixed(2)).
/external/v8/test/js-perf-test/
Dbase.js208 return value.toFixed(0);

123