Lines Matching refs:Decimal
9 Decimal.config({
18 var D1 = Decimal.clone({ precision: 1 });
19 var D2 = Decimal.clone({ precision: 2 });
20 var D3 = Decimal.clone({ precision: 3 });
21 var D4 = Decimal.clone({ precision: 4 });
22 var D5 = Decimal.clone({ precision: 5 });
23 var D6 = Decimal.clone({ precision: 6 });
24 var D7 = Decimal.clone({ precision: 7 });
25 var D8 = Decimal.clone();
27 var D9 = Decimal.clone({ precision: 9 });
29 t(Decimal.prototype === D9.prototype);
30 t(Decimal !== D9);
32 var x = new Decimal(5);
54 var y = new Decimal(3);
86 t(Decimal.precision == 10);
97 t(new Decimal(9.99).eq(new D5('9.99')));
98 t(!new Decimal(9.99).eq(new D3('-9.99')));
99 t(!new Decimal(123.456789).toSD().eq(new D3('123.456789').toSD()));
100 t(new Decimal(123.456789).round().eq(new D3('123.456789').round()));
102 t(new Decimal(1).constructor === new Decimal(1).constructor);
104 t(new Decimal(1).constructor !== new D1(1).constructor);
107 T.assertException(function () { Decimal.clone(null) }, "Decimal.clone(null)");
111 Decimal.config({
119 t(Decimal.precision === 100);
120 t(Decimal.rounding === 2);
121 t(Decimal.toExpNeg === -100);
122 t(Decimal.toExpPos === 200);
123 t(Decimal.defaults === undefined);
125 D1 = Decimal.clone({ defaults: true });
133 D2 = Decimal.clone({ defaults: true, rounding: 5 });
140 D3 = Decimal.clone({ defaults: false });