~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/test/decimaltestdata/ddDivide.decTest

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
18
18
--   mfc@uk.ibm.com                                                   --
19
19
------------------------------------------------------------------------
20
 
version: 2.58
 
20
version: 2.59
21
21
 
22
22
precision:   16
23
23
maxExponent: 384
160
160
dddiv222 divide -391  597 -> -0.6549413735343384  Inexact Rounded
161
161
dddiv223 divide -391 -597 ->  0.6549413735343384  Inexact Rounded
162
162
 
 
163
-- test some cases that are close to exponent overflow, some with coefficient padding
163
164
dddiv270 divide 1 1e384                  -> 1E-384                 Subnormal
164
165
dddiv271 divide 1 0.9e384                -> 1.11111111111111E-384  Rounded Inexact Subnormal Underflow
165
166
dddiv272 divide 1 0.99e384               -> 1.01010101010101E-384  Rounded Inexact Subnormal Underflow
168
168
dddiv274 divide 9e384    1               -> 9.000000000000000E+384 Clamped
169
169
dddiv275 divide 9.9e384  1               -> 9.900000000000000E+384 Clamped
170
170
dddiv276 divide 9.99e384 1               -> 9.990000000000000E+384 Clamped
171
 
dddiv277 divide 9.999999999999999e384 1  -> 9.999999999999999E+384
 
171
dddiv277 divide 9.9999999999999e384 1    -> 9.999999999999900E+384 Clamped
 
172
dddiv278 divide 9.99999999999999e384 1   -> 9.999999999999990E+384 Clamped
 
173
dddiv279 divide 9.999999999999999e384 1  -> 9.999999999999999E+384
 
174
 
 
175
dddiv285 divide 9.9e384  1.1              -> 9.000000000000000E+384 Clamped
 
176
dddiv286 divide 9.99e384 1.1              -> 9.081818181818182E+384 Inexact Rounded
 
177
dddiv287 divide 9.9999999999999e384 1.1   -> 9.090909090909000E+384 Clamped
 
178
dddiv288 divide 9.99999999999999e384 1.1  -> 9.090909090909082E+384 Inexact Rounded
 
179
dddiv289 divide 9.999999999999999e384 1.1 -> 9.090909090909090E+384 Clamped
 
180
 
172
181
 
173
182
-- Divide into 0 tests
174
183
dddiv301 divide    0    7     -> 0