Lines Matching refs:Decimal
7 T.assertEqual(expected, new Decimal(n).pow(exp).valueOf());
14 Decimal.config({
118 Decimal.precision = 20;
129 Decimal.precision = 600;
410 Decimal.toExpNeg = Decimal.toExpPos = 0;
543 tx(function () {new Decimal('12.345').pow(void 0)}, ".pow(void 0)");
544 tx(function () {new Decimal('12.345').pow(null)}, ".pow(null)");
545 tx(function () {new Decimal('12.345').pow(true)}, ".pow(true)");
546 tx(function () {new Decimal('12.345').pow(false)}, ".pow(false)");
547 tx(function () {new Decimal('12.345').pow([])}, ".pow([])");
548 tx(function () {new Decimal('12.345').pow({})}, ".pow({})");
549 tx(function () {new Decimal('12.345').pow('')}, ".pow('')");
550 tx(function () {new Decimal('12.345').pow(' ')}, ".pow(' ')");
551 tx(function () {new Decimal('12.345').pow('4e')}, ".pow('4e')");
552 tx(function () {new Decimal('12.345').pow('hello')}, ".pow('hello')");
553 tx(function () {new Decimal('12.345').pow('\t')}, ".pow('\t')");
554 tx(function () {new Decimal('12.345').pow(new Date)}, ".pow(new Date)");
555 tx(function () {new Decimal('12.345').pow(new RegExp)}, ".pow(new RegExp)");
556 tx(function () {new Decimal('12.345').pow(function (){})}, ".pow(function (){})");
564 Math.pow(2, null) = 1 // NaN for Decimal
568 Math.pow(2, []) = 1 // NaN for Decimal
569 Math.pow(2, {}) = NaN // NaN for Decimal