Lines Matching refs:toPrecision
330 PASS try { Number(1).toPrecision(-1); } catch (e) { String(e).indexOf('Range') >= 0; } is true
331 PASS try { Number(1).toPrecision(0); } catch (e) { String(e).indexOf('Range') >= 0; } is true
332 PASS try { Number(1).toPrecision(1); } catch (e) { String(e); } is "1"
333 PASS try { Number(1).toPrecision(21); } catch (e) { String(e); } is "1.00000000000000000000"
334 PASS try { Number(1).toPrecision(22); } catch (e) { String(e).indexOf('Range') >= 0; } is true
335 PASS Number(NaN).toPrecision() is "NaN"
336 PASS Number(NaN).toPrecision(1) is "NaN"
337 PASS Number(Infinity).toPrecision() is "Infinity"
338 PASS Number(Infinity).toPrecision(1) is "Infinity"
339 PASS Number(-Infinity).toPrecision() is "-Infinity"
340 PASS Number(-Infinity).toPrecision(1) is "-Infinity"
341 PASS Number(.0000000012345).toPrecision(2) is "1.2e-9"
342 PASS Number(.000000012345).toPrecision(2) is "1.2e-8"
343 PASS Number(.00000012345).toPrecision(2) is "1.2e-7"
344 PASS Number(.0000012345).toPrecision(2) is "0.0000012"
345 PASS Number(.000012345).toPrecision(2) is "0.000012"
346 PASS Number(.00012345).toPrecision(2) is "0.00012"
347 PASS Number(.0012345).toPrecision(2) is "0.0012"
348 PASS Number(.012345).toPrecision(2) is "0.012"
349 PASS Number(.12345).toPrecision(2) is "0.12"
350 PASS Number(1.2345).toPrecision(2) is "1.2"
351 PASS Number(12.345).toPrecision(2) is "12"
352 PASS Number(123.45).toPrecision(2) is "1.2e+2"
353 PASS Number(1234.5).toPrecision(2) is "1.2e+3"
354 PASS Number(12345).toPrecision(2) is "1.2e+4"
355 PASS Number(12345.67).toPrecision(4) is "1.235e+4"
356 PASS Number(12344.67).toPrecision(4) is "1.234e+4"
357 PASS Number(0.0001234567890123456789012345).toPrecision() is "0.00012345678901234567"
358 PASS Number(0.0001234567890123456789012345).toPrecision(1) is "0.0001"
359 PASS Number(0.0001234567890123456789012345).toPrecision(2) is "0.00012"
360 PASS Number(0.0001234567890123456789012345).toPrecision(3) is "0.000123"
361 PASS Number(0.0001234567890123456789012345).toPrecision(4) is "0.0001235"
362 PASS Number(0.0001234567890123456789012345).toPrecision(5) is "0.00012346"
363 PASS Number(0.0001234567890123456789012345).toPrecision(6) is "0.000123457"
364 PASS Number(0.0001234567890123456789012345).toPrecision(7) is "0.0001234568"
365 PASS Number(0.0001234567890123456789012345).toPrecision(8) is "0.00012345679"
366 PASS Number(0.0001234567890123456789012345).toPrecision(9) is "0.000123456789"
367 PASS Number(0.0001234567890123456789012345).toPrecision(10) is "0.0001234567890"
368 PASS Number(0.0001234567890123456789012345).toPrecision(11) is "0.00012345678901"
369 PASS Number(0.0001234567890123456789012345).toPrecision(12) is "0.000123456789012"
370 PASS Number(0.0001234567890123456789012345).toPrecision(13) is "0.0001234567890123"
371 PASS Number(0.0001234567890123456789012345).toPrecision(14) is "0.00012345678901235"
372 PASS Number(0.0001234567890123456789012345).toPrecision(15) is "0.000123456789012346"
373 PASS Number(0.0001234567890123456789012345).toPrecision(16) is "0.0001234567890123457"
374 PASS Number(0.0001234567890123456789012345).toPrecision(17) is "0.00012345678901234567"
375 PASS Number(0.0001234567890123456789012345).toPrecision(18) is "0.000123456789012345671"
376 PASS Number(0.0001234567890123456789012345).toPrecision(19) is "0.0001234567890123456713"
377 PASS Number(0.0001234567890123456789012345).toPrecision(20) is "0.00012345678901234567130"
378 PASS Number(0.0001234567890123456789012345).toPrecision(21) is "0.000123456789012345671298"
379 PASS Number(12345.67890123456789012345).toPrecision() is "12345.678901234567"
380 PASS Number(12345.67890123456789012345).toPrecision(1) is "1e+4"
381 PASS Number(12345.67890123456789012345).toPrecision(2) is "1.2e+4"
382 PASS Number(12345.67890123456789012345).toPrecision(3) is "1.23e+4"
383 PASS Number(12345.67890123456789012345).toPrecision(4) is "1.235e+4"
384 PASS Number(12345.67890123456789012345).toPrecision(5) is "12346"
385 PASS Number(12345.67890123456789012345).toPrecision(6) is "12345.7"
386 PASS Number(12345.67890123456789012345).toPrecision(7) is "12345.68"
387 PASS Number(12345.67890123456789012345).toPrecision(8) is "12345.679"
388 PASS Number(12345.67890123456789012345).toPrecision(9) is "12345.6789"
389 PASS Number(12345.67890123456789012345).toPrecision(10) is "12345.67890"
390 PASS Number(12345.67890123456789012345).toPrecision(11) is "12345.678901"
391 PASS Number(12345.67890123456789012345).toPrecision(12) is "12345.6789012"
392 PASS Number(12345.67890123456789012345).toPrecision(13) is "12345.67890123"
393 PASS Number(12345.67890123456789012345).toPrecision(14) is "12345.678901235"
394 PASS Number(12345.67890123456789012345).toPrecision(15) is "12345.6789012346"
395 PASS Number(12345.67890123456789012345).toPrecision(16) is "12345.67890123457"
396 PASS Number(12345.67890123456789012345).toPrecision(17) is "12345.678901234567"
397 PASS Number(12345.67890123456789012345).toPrecision(18) is "12345.6789012345671"
398 PASS Number(12345.67890123456789012345).toPrecision(19) is "12345.67890123456709"
399 PASS Number(12345.67890123456789012345).toPrecision(20) is "12345.678901234567093"
400 PASS Number(12345.67890123456789012345).toPrecision(21) is "12345.6789012345670926"
401 PASS Number(-.0000000012345).toPrecision(2) is "-1.2e-9"
402 PASS Number(-.000000012345).toPrecision(2) is "-1.2e-8"
403 PASS Number(-.00000012345).toPrecision(2) is "-1.2e-7"
404 PASS Number(-.0000012345).toPrecision(2) is "-0.0000012"
405 PASS Number(-.000012345).toPrecision(2) is "-0.000012"
406 PASS Number(-.00012345).toPrecision(2) is "-0.00012"
407 PASS Number(-.0012345).toPrecision(2) is "-0.0012"
408 PASS Number(-.012345).toPrecision(2) is "-0.012"
409 PASS Number(-.12345).toPrecision(2) is "-0.12"
410 PASS Number(-1.2345).toPrecision(2) is "-1.2"
411 PASS Number(-12.345).toPrecision(2) is "-12"
412 PASS Number(-123.45).toPrecision(2) is "-1.2e+2"
413 PASS Number(-1234.5).toPrecision(2) is "-1.2e+3"
414 PASS Number(-12345).toPrecision(2) is "-1.2e+4"
415 PASS Number(-12345.67).toPrecision(4) is "-1.235e+4"
416 PASS Number(-12344.67).toPrecision(4) is "-1.234e+4"
417 PASS Number(-0.0001234567890123456789012345).toPrecision() is "-0.00012345678901234567"
418 PASS Number(-0.0001234567890123456789012345).toPrecision(1) is "-0.0001"
419 PASS Number(-0.0001234567890123456789012345).toPrecision(2) is "-0.00012"
420 PASS Number(-0.0001234567890123456789012345).toPrecision(3) is "-0.000123"
421 PASS Number(-0.0001234567890123456789012345).toPrecision(4) is "-0.0001235"
422 PASS Number(-0.0001234567890123456789012345).toPrecision(5) is "-0.00012346"
423 PASS Number(-0.0001234567890123456789012345).toPrecision(6) is "-0.000123457"
424 PASS Number(-0.0001234567890123456789012345).toPrecision(7) is "-0.0001234568"
425 PASS Number(-0.0001234567890123456789012345).toPrecision(8) is "-0.00012345679"
426 PASS Number(-0.0001234567890123456789012345).toPrecision(9) is "-0.000123456789"
427 PASS Number(-0.0001234567890123456789012345).toPrecision(10) is "-0.0001234567890"
428 PASS Number(-0.0001234567890123456789012345).toPrecision(11) is "-0.00012345678901"
429 PASS Number(-0.0001234567890123456789012345).toPrecision(12) is "-0.000123456789012"
430 PASS Number(-0.0001234567890123456789012345).toPrecision(13) is "-0.0001234567890123"
431 PASS Number(-0.0001234567890123456789012345).toPrecision(14) is "-0.00012345678901235"
432 PASS Number(-0.0001234567890123456789012345).toPrecision(15) is "-0.000123456789012346"
433 PASS Number(-0.0001234567890123456789012345).toPrecision(16) is "-0.0001234567890123457"
434 PASS Number(-0.0001234567890123456789012345).toPrecision(17) is "-0.00012345678901234567"
435 PASS Number(-0.0001234567890123456789012345).toPrecision(18) is "-0.000123456789012345671"
436 PASS Number(-0.0001234567890123456789012345).toPrecision(19) is "-0.0001234567890123456713"
437 PASS Number(-0.0001234567890123456789012345).toPrecision(20) is "-0.00012345678901234567130"
438 PASS Number(-0.0001234567890123456789012345).toPrecision(21) is "-0.000123456789012345671298"
439 PASS Number(-12345.67890123456789012345).toPrecision() is "-12345.678901234567"
440 PASS Number(-12345.67890123456789012345).toPrecision(1) is "-1e+4"
441 PASS Number(-12345.67890123456789012345).toPrecision(2) is "-1.2e+4"
442 PASS Number(-12345.67890123456789012345).toPrecision(3) is "-1.23e+4"
443 PASS Number(-12345.67890123456789012345).toPrecision(4) is "-1.235e+4"
444 PASS Number(-12345.67890123456789012345).toPrecision(5) is "-12346"
445 PASS Number(-12345.67890123456789012345).toPrecision(6) is "-12345.7"
446 PASS Number(-12345.67890123456789012345).toPrecision(7) is "-12345.68"
447 PASS Number(-12345.67890123456789012345).toPrecision(8) is "-12345.679"
448 PASS Number(-12345.67890123456789012345).toPrecision(9) is "-12345.6789"
449 PASS Number(-12345.67890123456789012345).toPrecision(10) is "-12345.67890"
450 PASS Number(-12345.67890123456789012345).toPrecision(11) is "-12345.678901"
451 PASS Number(-12345.67890123456789012345).toPrecision(12) is "-12345.6789012"
452 PASS Number(-12345.67890123456789012345).toPrecision(13) is "-12345.67890123"
453 PASS Number(-12345.67890123456789012345).toPrecision(14) is "-12345.678901235"
454 PASS Number(-12345.67890123456789012345).toPrecision(15) is "-12345.6789012346"
455 PASS Number(-12345.67890123456789012345).toPrecision(16) is "-12345.67890123457"
456 PASS Number(-12345.67890123456789012345).toPrecision(17) is "-12345.678901234567"
457 PASS Number(-12345.67890123456789012345).toPrecision(18) is "-12345.6789012345671"
458 PASS Number(-12345.67890123456789012345).toPrecision(19) is "-12345.67890123456709"
459 PASS Number(-12345.67890123456789012345).toPrecision(20) is "-12345.678901234567093"
460 PASS Number(-12345.67890123456789012345).toPrecision(21) is "-12345.6789012345670926"
461 PASS Number(0).toPrecision() is "0"
462 PASS Number(0).toPrecision(1) is "0"
463 PASS Number(0).toPrecision(2) is "0.0"
464 PASS Number(0).toPrecision(3) is "0.00"
465 PASS Number(0).toPrecision(4) is "0.000"
466 PASS Number(0).toPrecision(5) is "0.0000"
467 PASS Number(0).toPrecision(6) is "0.00000"
468 PASS Number(0).toPrecision(7) is "0.000000"
469 PASS Number(0).toPrecision(8) is "0.0000000"
470 PASS Number(0).toPrecision(9) is "0.00000000"
471 PASS Number(0).toPrecision(10) is "0.000000000"
472 PASS Number(0).toPrecision(11) is "0.0000000000"
473 PASS Number(0).toPrecision(12) is "0.00000000000"
474 PASS Number(0).toPrecision(13) is "0.000000000000"
475 PASS Number(0).toPrecision(14) is "0.0000000000000"
476 PASS Number(0).toPrecision(15) is "0.00000000000000"
477 PASS Number(0).toPrecision(16) is "0.000000000000000"
478 PASS Number(0).toPrecision(17) is "0.0000000000000000"
479 PASS Number(0).toPrecision(18) is "0.00000000000000000"
480 PASS Number(0).toPrecision(19) is "0.000000000000000000"
481 PASS Number(0).toPrecision(20) is "0.0000000000000000000"
482 PASS Number(0).toPrecision(21) is "0.00000000000000000000"