~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

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

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
------------------------------------------------------------------------
2
2
-- ddBase.decTest -- base decDouble <--> string conversions           --
 
3
-- Copyright (c) IBM Corporation, 1981, 2008.  All rights reserved.   --
3
4
------------------------------------------------------------------------
4
5
-- Please see the document "General Decimal Arithmetic Testcases"     --
5
6
-- at http://www2.hursley.ibm.com/decimal for the description of      --
17
17
--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
18
18
--   mfc@uk.ibm.com                                                   --
19
19
------------------------------------------------------------------------
20
 
version: 2.57
 
20
version: 2.58
21
21
 
22
22
-- This file tests base conversions from string to a decimal number
23
23
-- and back to a string (in Scientific form)
1078
1078
ddbas1042 toSci     1.1111111111152445E-384 ->  1.11111111111524E-384 Inexact Rounded Subnormal Underflow
1079
1079
ddbas1043 toSci     1.1111111111152446E-384 ->  1.11111111111524E-384 Inexact Rounded Subnormal Underflow
1080
1080
 
 
1081
-- clamped large normals
 
1082
ddbas1070 toSci   1E+369  ->  1E+369
 
1083
ddbas1071 toSci   1E+370  ->  1.0E+370  Clamped
 
1084
ddbas1072 toSci   1E+378  ->  1.000000000E+378  Clamped
 
1085
ddbas1073 toSci   1E+384  ->  1.000000000000000E+384  Clamped
 
1086
ddbas1074 toSci   1E+385  ->  Infinity Overflow Inexact Rounded
 
1087
 
 
1088
 
1081
1089
-- clamped zeros [see also clamp.decTest]
1082
1090
ddbas1075 toSci   0e+10000  ->  0E+369  Clamped
1083
1091
ddbas1076 toSci   0e-10000  ->  0E-398  Clamped