Start packaging the bz2 python module as it is needed for building Qt5
[profile/ivi/python.git] / Lib / test / decimaltestdata / dqPlus.decTest
1 ------------------------------------------------------------------------
2 -- dqPlus.decTest -- decQuad 0+x                                      --
3 -- Copyright (c) IBM Corporation, 1981, 2008.  All rights reserved.   --
4 ------------------------------------------------------------------------
5 -- Please see the document "General Decimal Arithmetic Testcases"     --
6 -- at http://www2.hursley.ibm.com/decimal for the description of      --
7 -- these testcases.                                                   --
8 --                                                                    --
9 -- These testcases are experimental ('beta' versions), and they       --
10 -- may contain errors.  They are offered on an as-is basis.  In       --
11 -- particular, achieving the same results as the tests here is not    --
12 -- a guarantee that an implementation complies with any Standard      --
13 -- or specification.  The tests are not exhaustive.                   --
14 --                                                                    --
15 -- Please send comments, suggestions, and corrections to the author:  --
16 --   Mike Cowlishaw, IBM Fellow                                       --
17 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
18 --   mfc@uk.ibm.com                                                   --
19 ------------------------------------------------------------------------
20 version: 2.59
21
22 -- All operands and results are decQuads.
23 extended:    1
24 clamp:       1
25 precision:   34
26 maxExponent: 6144
27 minExponent: -6143
28 rounding:    half_even
29
30 -- Sanity check
31 dqpls001 plus       +7.50  -> 7.50
32
33 -- Infinities
34 dqpls011 plus  Infinity    -> Infinity
35 dqpls012 plus  -Infinity   -> -Infinity
36
37 -- NaNs, 0 payload
38 ddqls021 plus         NaN  -> NaN
39 ddqls022 plus        -NaN  -> -NaN
40 ddqls023 plus        sNaN  -> NaN  Invalid_operation
41 ddqls024 plus       -sNaN  -> -NaN Invalid_operation
42
43 -- NaNs, non-0 payload
44 ddqls031 plus       NaN13  -> NaN13
45 ddqls032 plus      -NaN13  -> -NaN13
46 ddqls033 plus      sNaN13  -> NaN13   Invalid_operation
47 ddqls034 plus     -sNaN13  -> -NaN13  Invalid_operation
48 ddqls035 plus       NaN70  -> NaN70
49 ddqls036 plus      -NaN70  -> -NaN70
50 ddqls037 plus      sNaN101 -> NaN101  Invalid_operation
51 ddqls038 plus     -sNaN101 -> -NaN101 Invalid_operation
52
53 -- finites
54 dqpls101 plus          7   -> 7
55 dqpls102 plus         -7   -> -7
56 dqpls103 plus         75   -> 75
57 dqpls104 plus        -75   -> -75
58 dqpls105 plus       7.50   -> 7.50
59 dqpls106 plus      -7.50   -> -7.50
60 dqpls107 plus       7.500  -> 7.500
61 dqpls108 plus      -7.500  -> -7.500
62
63 -- zeros
64 dqpls111 plus          0   -> 0
65 dqpls112 plus         -0   -> 0
66 dqpls113 plus       0E+4   -> 0E+4
67 dqpls114 plus      -0E+4   -> 0E+4
68 dqpls115 plus     0.0000   -> 0.0000
69 dqpls116 plus    -0.0000   -> 0.0000
70 dqpls117 plus      0E-141  -> 0E-141
71 dqpls118 plus     -0E-141  -> 0E-141
72
73 -- full coefficients, alternating bits
74 dqpls121 plus   2682682682682682682682682682682682    ->  2682682682682682682682682682682682
75 dqpls122 plus  -2682682682682682682682682682682682    -> -2682682682682682682682682682682682
76 dqpls123 plus   1341341341341341341341341341341341    ->  1341341341341341341341341341341341
77 dqpls124 plus  -1341341341341341341341341341341341    -> -1341341341341341341341341341341341
78
79 -- Nmax, Nmin, Ntiny
80 dqpls131 plus  9.999999999999999999999999999999999E+6144   ->  9.999999999999999999999999999999999E+6144
81 dqpls132 plus  1E-6143                                     ->  1E-6143
82 dqpls133 plus  1.000000000000000000000000000000000E-6143   ->  1.000000000000000000000000000000000E-6143
83 dqpls134 plus  1E-6176                                     ->  1E-6176 Subnormal
84
85 dqpls135 plus  -1E-6176                                    -> -1E-6176 Subnormal
86 dqpls136 plus  -1.000000000000000000000000000000000E-6143  -> -1.000000000000000000000000000000000E-6143
87 dqpls137 plus  -1E-6143                                    -> -1E-6143
88 dqpls138 plus  -9.999999999999999999999999999999999E+6144  -> -9.999999999999999999999999999999999E+6144