• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/JavaScriptCore-7537.78.1/tests/mozilla/ecma/Math/

Lines Matching refs:round

24     ECMA Section:       15.8.2.15  Math.round(x)
39 Math.round( 3.5 ) == 4
40 Math.round( -3.5 ) == 3
42 - Math.round(x) == Math.floor( x + 0.5 )
43 except if x = -0. in that case, Math.round(x) = -0
55 var TITLE = "Math.round(x)";
69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length );
71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() );
72 array[item++] = new TestCase( SECTION, "Math.round(null)", 0, Math.round(0) );
73 array[item++] = new TestCase( SECTION, "Math.round(void 0)", Number.NaN, Math.round(void 0) );
74 array[item++] = new TestCase( SECTION, "Math.round(true)", 1, Math.round(true) );
75 array[item++] = new TestCase( SECTION, "Math.round(false)", 0, Math.round(false) );
76 array[item++] = new TestCase( SECTION, "Math.round('.99999')", 1, Math.round('.99999') );
77 array[item++] = new TestCase( SECTION, "Math.round('12345e-2')", 123, Math.round('12345e-2') );
79 array[item++] = new TestCase( SECTION, "Math.round(NaN)", Number.NaN, Math.round(Number.NaN) );
80 array[item++] = new TestCase( SECTION, "Math.round(0)", 0, Math.round(0) );
81 array[item++] = new TestCase( SECTION, "Math.round(-0)", -0, Math.round(-0));
82 array[item++] = new TestCase( SECTION, "Infinity/Math.round(-0)", -Infinity, Infinity/Math.round(-0) );
84 array[item++] = new TestCase( SECTION, "Math.round(Infinity)", Number.POSITIVE_INFINITY, Math.round(Number.POSITIVE_INFINITY));
85 array[item++] = new TestCase( SECTION, "Math.round(-Infinity)",Number.NEGATIVE_INFINITY, Math.round(Number.NEGATIVE_INFINITY));
86 array[item++] = new TestCase( SECTION, "Math.round(0.49)", 0, Math.round(0.49));
87 array[item++] = new TestCase( SECTION, "Math.round(0.5)", 1, Math.round(0.5));
88 array[item++] = new TestCase( SECTION, "Math.round(0.51)", 1, Math.round(0.51));
90 array[item++] = new TestCase( SECTION, "Math.round(-0.49)", -0, Math.round(-0.49));
91 array[item++] = new TestCase( SECTION, "Math.round(-0.5)", -0, Math.round(-0.5));
92 array[item++] = new TestCase( SECTION, "Infinity/Math.round(-0.49)", -Infinity, Infinity/Math.round(-0.49));
93 array[item++] = new TestCase( SECTION, "Infinity/Math.round(-0.5)", -Infinity, Infinity/Math.round(-0.5));
95 array[item++] = new TestCase( SECTION, "Math.round(-0.51)", -1, Math.round(-0.51));
96 array[item++] = new TestCase( SECTION, "Math.round(3.5)", 4, Math.round(3.5));
97 array[item++] = new TestCase( SECTION, "Math.round(-3.5)", -3, Math.round(-3));