Lines Matching refs:Decimal
9 Decimal.config({
22 t(!isMinusZero(new Decimal(0).toNearest(0)));
23 t( isMinusZero(new Decimal(-1).toNearest(0)));
24 t( isMinusZero(new Decimal(-0).toNearest(0)));
25 t(!isMinusZero(new Decimal(1).toNearest(0)));
26 t(!isMinusZero(new Decimal(1).toNearest(-0)));
27 t(!isMinusZero(new Decimal(1).toNearest(-3)));
28 t( isMinusZero(new Decimal(-1).toNearest(-3)));
31 T.assertEqual(expected, new Decimal(n).toNearest(v, rm).valueOf());
94 Decimal.precision = 3;
96 t('83105511540', '83105511539.5', new Decimal(1), 4);
98 t('83105511539', '83105511539.5', new Decimal('1'), 5);
101 Decimal.precision = 20;
108 t('-83105511540', '-83105511539.5', new Decimal(-1), 4);
110 t('-83105511539', '-83105511539.5', new Decimal('-1'), 5);
141 Decimal.rounding = 0;
144 Decimal.rounding = 1;
193 Decimal.rounding = 0;
195 Decimal.rounding = 1;
197 Decimal.rounding = 2;
199 Decimal.rounding = 3;
201 Decimal.rounding = 4;
203 Decimal.rounding = 5;
205 Decimal.rounding = 6;
207 Decimal.rounding = 7;
209 Decimal.rounding = 8;
212 Decimal.rounding = 0;
214 Decimal.rounding = 1;
216 Decimal.rounding = 2;
218 Decimal.rounding = 3;
220 Decimal.rounding = 4;
222 Decimal.rounding = 5;
224 Decimal.rounding = 6;
226 Decimal.rounding = 7;
228 Decimal.rounding = 8;