ddClass.decTest 3.7 KB

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