PageRenderTime 449ms CodeModel.GetById 232ms app.highlight 5ms RepoModel.GetById 207ms app.codeStats 0ms

/Lib/test/decimaltestdata/ddClass.decTest

http://unladen-swallow.googlecode.com/
Unknown | 76 lines | 69 code | 7 blank | 0 comment | 0 complexity | 75c3e3953c6a3f2107f4475f71e6afb4 MD5 | raw file
 1------------------------------------------------------------------------
 2-- ddClass.decTest -- decDouble Class operations                      --
 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------------------------------------------------------------------------
20version: 2.58
21
22-- [New 2006.11.27]
23precision:   16
24maxExponent: 384
25minExponent: -383
26extended:    1
27clamp:       1
28rounding:    half_even
29
30ddcla001  class    0                        -> +Zero
31ddcla002  class    0.00                     -> +Zero
32ddcla003  class    0E+5                     -> +Zero
33ddcla004  class    1E-396                   -> +Subnormal
34ddcla005  class  0.1E-383                   -> +Subnormal
35ddcla006  class  0.999999999999999E-383     -> +Subnormal
36ddcla007  class  1.000000000000000E-383     -> +Normal
37ddcla008  class   1E-383                    -> +Normal
38ddcla009  class   1E-100                    -> +Normal
39ddcla010  class   1E-10                     -> +Normal
40ddcla012  class   1E-1                      -> +Normal
41ddcla013  class   1                         -> +Normal
42ddcla014  class   2.50                      -> +Normal
43ddcla015  class   100.100                   -> +Normal
44ddcla016  class   1E+30                     -> +Normal
45ddcla017  class   1E+384                    -> +Normal
46ddcla018  class   9.999999999999999E+384    -> +Normal
47ddcla019  class   Inf                       -> +Infinity
48
49ddcla021  class   -0                        -> -Zero
50ddcla022  class   -0.00                     -> -Zero
51ddcla023  class   -0E+5                     -> -Zero
52ddcla024  class   -1E-396                   -> -Subnormal
53ddcla025  class  -0.1E-383                  -> -Subnormal
54ddcla026  class  -0.999999999999999E-383    -> -Subnormal
55ddcla027  class  -1.000000000000000E-383    -> -Normal
56ddcla028  class  -1E-383                    -> -Normal
57ddcla029  class  -1E-100                    -> -Normal
58ddcla030  class  -1E-10                     -> -Normal
59ddcla032  class  -1E-1                      -> -Normal
60ddcla033  class  -1                         -> -Normal
61ddcla034  class  -2.50                      -> -Normal
62ddcla035  class  -100.100                   -> -Normal
63ddcla036  class  -1E+30                     -> -Normal
64ddcla037  class  -1E+384                    -> -Normal
65ddcla038  class  -9.999999999999999E+384    -> -Normal
66ddcla039  class  -Inf                       -> -Infinity
67
68ddcla041  class   NaN                       -> NaN
69ddcla042  class  -NaN                       -> NaN
70ddcla043  class  +NaN12345                  -> NaN
71ddcla044  class   sNaN                      -> sNaN
72ddcla045  class  -sNaN                      -> sNaN
73ddcla046  class  +sNaN12345                 -> sNaN
74
75
76