dqClass.decTest 3.9 KB

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