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