improve decimal context
[awesomized/ext-ion] / tests / Decimal / Context.phpt
1 --TEST--
2 ion\Decimal\Context
3 --EXTENSIONS--
4 ion
5 --FILE--
6 TEST
7 <?php
8 var_dump(ion\Decimal\Context::Dec32());
9 var_dump(ion\Decimal\Context::Dec64());
10 var_dump(ion\Decimal\Context::Dec128());
11 var_dump(ion\Decimal\Context::DecMax());
12 ?>
13 DONE
14 --EXPECTF--
15 TEST
16 object(ion\Decimal\Context)#%d (5) {
17 ["digits"]=>
18 int(7)
19 ["eMax"]=>
20 int(96)
21 ["eMin"]=>
22 int(-95)
23 ["round"]=>
24 int(3)
25 ["clamp"]=>
26 bool(true)
27 }
28 object(ion\Decimal\Context)#%d (5) {
29 ["digits"]=>
30 int(16)
31 ["eMax"]=>
32 int(384)
33 ["eMin"]=>
34 int(-383)
35 ["round"]=>
36 int(3)
37 ["clamp"]=>
38 bool(true)
39 }
40 object(ion\Decimal\Context)#%d (5) {
41 ["digits"]=>
42 int(34)
43 ["eMax"]=>
44 int(6144)
45 ["eMin"]=>
46 int(-6143)
47 ["round"]=>
48 int(3)
49 ["clamp"]=>
50 bool(true)
51 }
52 object(ion\Decimal\Context)#%d (5) {
53 ["digits"]=>
54 int(999999999)
55 ["eMax"]=>
56 int(999999999)
57 ["eMin"]=>
58 int(-999999999)
59 ["round"]=>
60 int(3)
61 ["clamp"]=>
62 bool(false)
63 }
64 DONE