Lines Matching refs:Decimal

6     T.assertEqual(expected, new Decimal(n).toExponential(dp));
13 Decimal.config({
110 Decimal.rounding = 0;
161 Decimal.rounding = 1;
213 Decimal.rounding = 2;
261 Decimal.rounding = 3;
316 Decimal.rounding = 4;
369 Decimal.rounding = 5;
422 Decimal.rounding = 6;
471 Decimal.rounding = 4;
500 tx(function () {new Decimal('1.23').toExponential('3')}, "('1.23').toExponential('3')");
501 tx(function () {new Decimal('1.23').toExponential(new Decimal('3'))}, "('1.23').toExponential(new Decimal('3'))");
502 tx(function () {new Decimal('1.23').toExponential(null)}, "('1.23').toExponential(null)");
503 tx(function () {new Decimal('1.23').toExponential(NaN)}, "('1.23').toExponential(NaN)");
504 tx(function () {new Decimal('1.23').toExponential('NaN')}, "('1.23').toExponential('NaN')");
505 tx(function () {new Decimal('1.23').toExponential([])}, "('1.23').toExponential([])");
506 tx(function () {new Decimal('1.23').toExponential({})}, "('1.23').toExponential({})");
507 tx(function () {new Decimal('1.23').toExponential('')}, "('1.23').toExponential('')");
508 tx(function () {new Decimal('1.23').toExponential(' ')}, "('1.23').toExponential(' ')");
509 tx(function () {new Decimal('1.23').toExponential('hello')}, "('1.23').toExponential('hello')");
510 tx(function () {new Decimal('1.23').toExponential('\t')}, "('1.23').toExponential('\t')");
511 tx(function () {new Decimal('1.23').toExponential(new Date)}, "('1.23').toExponential(new Date)");
512 tx(function () {new Decimal('1.23').toExponential(new RegExp)}, "('1.23').toExponential(new RegExp)");
513 tx(function () {new Decimal('1.23').toExponential(2.01)}, "('1.23').toExponential(2.01)");
514 tx(function () {new Decimal('1.23').toExponential(10.5)}, "('1.23').toExponential(10.5)");
515 tx(function () {new Decimal('1.23').toExponential('1.1e1')}, "('1.23').toExponential('1.1e1')");
516 tx(function () {new Decimal('1.23').toExponential(true)}, "('1.23').toExponential(true)");
517 tx(function () {new Decimal('1.23').toExponential(false)}, "('1.23').toExponential(false)");
518 tx(function () {new Decimal('1.23').toExponential(function (){})}, "('1.23').toExponential(function (){})");
520 tx(function () {new Decimal(1.23).toExponential('-1')}, ".toExponential('-1')");
521 tx(function () {new Decimal(1.23).toExponential(-23)}, ".toExponential(-23)");
522 tx(function () {new Decimal(1.23).toExponential(1e9 + 1)}, ".toExponential(1e9 + 1)");
523 tx(function () {new Decimal(1.23).toExponential(-0.01)}, ".toExponential(-0.01)");
524 tx(function () {new Decimal(1.23).toExponential('-1e-1')}, ".toExponential('-1e-1')");
525 tx(function () {new Decimal(1.23).toExponential(Infinity)}, ".toExponential(Infinity)");
526 tx(function () {new Decimal(1.23).toExponential('-Infinity')}, ".toExponential('-Infinity')");
528 tx(function () {new Decimal('1.23').toExponential(1, '3')}, "('1.23').toExponential(1, '3')");
529 tx(function () {new Decimal('1.23').toExponential(1, new Decimal('3'))}, "('1.23').toExponential(1, new Decimal('3'))");
530 tx(function () {new Decimal('1.23').toExponential(1, null)}, "('1.23').toExponential(1, null)");
531 tx(function () {new Decimal('1.23').toExponential(1, NaN)}, "('1.23').toExponential(1, NaN)");
532 tx(function () {new Decimal('1.23').toExponential(1, 'NaN')}, "('1.23').toExponential(1, 'NaN')");
533 tx(function () {new Decimal('1.23').toExponential(1, [])}, "('1.23').toExponential(1, [])");
534 tx(function () {new Decimal('1.23').toExponential(1, {})}, "('1.23').toExponential(1, {})");
535 tx(function () {new Decimal('1.23').toExponential(1, '')}, "('1.23').toExponential(1, '')");
536 tx(function () {new Decimal('1.23').toExponential(1, ' ')}, "('1.23').toExponential(1, ' ')");
537 tx(function () {new Decimal('1.23').toExponential(1, 'hello')}, "('1.23').toExponential(1, 'hello')");
538 tx(function () {new Decimal('1.23').toExponential(1, '\t')}, "('1.23').toExponential(1, '\t')");
539 tx(function () {new Decimal('1.23').toExponential(1, new Date)}, "('1.23').toExponential(1, new Date)");
540 tx(function () {new Decimal('1.23').toExponential(1, new RegExp)}, "('1.23').toExponential(1, new RegExp)");
541 tx(function () {new Decimal('1.23').toExponential(1, 2.01)}, "('1.23').toExponential(1, 2.01)");
542 tx(function () {new Decimal('1.23').toExponential(1, 10.5)}, "('1.23').toExponential(1, 10.5)");
543 tx(function () {new Decimal('1.23').toExponential(1, '1.1e1')}, "('1.23').toExponential(1, '1.1e1')");
544 tx(function () {new Decimal('1.23').toExponential(1, true)}, "('1.23').toExponential(1, true)");
545 tx(function () {new Decimal('1.23').toExponential(1, false)}, "('1.23').toExponential(1, false)");
546 tx(function () {new Decimal('1.23').toExponential(1, function (){})}, "('1.23').toExponential(1, function (){})");
548 tx(function () {new Decimal(1.23).toExponential(1, '-1')}, ".toExponential(1, '-1')");
549 tx(function () {new Decimal(1.23).toExponential(1, -23)}, ".toExponential(1, -23)");
550 tx(function () {new Decimal(1.23).toExponential(1, 1e9 + 1)}, ".toExponential(1, 1e9 + 1)");
551 tx(function () {new Decimal(1.23).toExponential(1, -0.01)}, ".toExponential(1, -0.01)");
552 tx(function () {new Decimal(1.23).toExponential(1, '-1e-1')}, ".toExponential(1, '-1e-1')");
553 tx(function () {new Decimal(1.23).toExponential(1, Infinity)}, ".toExponential(1, Infinity)");
554 tx(function () {new Decimal(1.23).toExponential(1, '-Infinity')}, ".toExponential(1, '-Infinity')");