1 ------------------------------------------------------------------------ 2 -- dqClass.decTest -- decQuad 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 (a] uk.ibm.com -- 19 ------------------------------------------------------------------------ 20 version: 2.59 21 22 -- [New 2006.11.27] 23 24 extended: 1 25 clamp: 1 26 precision: 34 27 maxExponent: 6144 28 minExponent: -6143 29 rounding: half_even 30 31 dqcla001 class 0 -> +Zero 32 dqcla002 class 0.00 -> +Zero 33 dqcla003 class 0E+5 -> +Zero 34 dqcla004 class 1E-6176 -> +Subnormal 35 dqcla005 class 0.1E-6143 -> +Subnormal 36 dqcla006 class 0.99999999999999999999999999999999E-6143 -> +Subnormal 37 dqcla007 class 1.00000000000000000000000000000000E-6143 -> +Normal 38 dqcla008 class 1E-6143 -> +Normal 39 dqcla009 class 1E-100 -> +Normal 40 dqcla010 class 1E-10 -> +Normal 41 dqcla012 class 1E-1 -> +Normal 42 dqcla013 class 1 -> +Normal 43 dqcla014 class 2.50 -> +Normal 44 dqcla015 class 100.100 -> +Normal 45 dqcla016 class 1E+30 -> +Normal 46 dqcla017 class 1E+6144 -> +Normal 47 dqcla018 class 9.99999999999999999999999999999999E+6144 -> +Normal 48 dqcla019 class Inf -> +Infinity 49 50 dqcla021 class -0 -> -Zero 51 dqcla022 class -0.00 -> -Zero 52 dqcla023 class -0E+5 -> -Zero 53 dqcla024 class -1E-6176 -> -Subnormal 54 dqcla025 class -0.1E-6143 -> -Subnormal 55 dqcla026 class -0.99999999999999999999999999999999E-6143 -> -Subnormal 56 dqcla027 class -1.00000000000000000000000000000000E-6143 -> -Normal 57 dqcla028 class -1E-6143 -> -Normal 58 dqcla029 class -1E-100 -> -Normal 59 dqcla030 class -1E-10 -> -Normal 60 dqcla032 class -1E-1 -> -Normal 61 dqcla033 class -1 -> -Normal 62 dqcla034 class -2.50 -> -Normal 63 dqcla035 class -100.100 -> -Normal 64 dqcla036 class -1E+30 -> -Normal 65 dqcla037 class -1E+6144 -> -Normal 66 dqcla0614 class -9.99999999999999999999999999999999E+6144 -> -Normal 67 dqcla039 class -Inf -> -Infinity 68 69 dqcla041 class NaN -> NaN 70 dqcla042 class -NaN -> NaN 71 dqcla043 class +NaN12345 -> NaN 72 dqcla044 class sNaN -> sNaN 73 dqcla045 class -sNaN -> sNaN 74 dqcla046 class +sNaN12345 -> sNaN 75 76 77 78