📄 randomsingle.dectest
字号:
------------------------------------------------------------------------
-- randomSingle.decTest -- decimal Single random testcases --
-- Copyright (c) IBM Corporation, 2001, 2002. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- these testcases. --
-- --
-- These testcases are experimental ('beta' versions), and they --
-- may contain errors. They are offered on an as-is basis. In --
-- particular, achieving the same results as the tests here is not --
-- a guarantee that an implementation complies with any Standard --
-- or specification. The tests are not exhaustive. --
-- --
-- Please send comments, suggestions, and corrections to the author: --
-- Mike Cowlishaw, IBM Fellow --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.15
extended: 1
precision: 15
maxExponent: 999
rounding: half_up
addx1001 add 372527013570.935 -3906915.40763817E+890 -> -3.90691540763817E+896 Inexact Rounded
comx1001 compare 372527013570.935 -3906915.40763817E+890 -> 1
divx1001 divide 372527013570.935 -3906915.40763817E+890 -> -9.53506730252286E-886 Inexact Rounded
dvix1001 divideint 372527013570.935 -3906915.40763817E+890 -> -0
mulx1001 multiply 372527013570.935 -3906915.40763817E+890 -> -1.45543152908172E+908 Inexact Rounded
powx1001 power 372527013570.935 -4 -> 5.19240927115774E-47 Inexact Rounded
remx1001 remainder 372527013570.935 -3906915.40763817E+890 -> 372527013570.935
subx1001 subtract 372527013570.935 -3906915.40763817E+890 -> 3.90691540763817E+896 Inexact Rounded
addx1002 add -8118217059.56920E+649 8917426.06804910E+842 -> 8.91742606804910E+848 Inexact Rounded
comx1002 compare -8118217059.56920E+649 8917426.06804910E+842 -> -1
divx1002 divide -8118217059.56920E+649 8917426.06804910E+842 -> -9.10376716063456E-191 Inexact Rounded
dvix1002 divideint -8118217059.56920E+649 8917426.06804910E+842 -> -0
mulx1002 multiply -8118217059.56920E+649 8917426.06804910E+842 -> -Infinity Overflow Inexact Rounded
powx1002 power -8118217059.56920E+649 9 -> -Infinity Overflow Inexact Rounded
remx1002 remainder -8118217059.56920E+649 8917426.06804910E+842 -> -8.11821705956920E+658
subx1002 subtract -8118217059.56920E+649 8917426.06804910E+842 -> -8.91742606804910E+848 Inexact Rounded
addx1003 add -2113204570705.27 53346631233.5280E+780 -> 5.33466312335280E+790 Inexact Rounded
comx1003 compare -2113204570705.27 53346631233.5280E+780 -> -1
divx1003 divide -2113204570705.27 53346631233.5280E+780 -> -3.96127088410624E-779 Inexact Rounded
dvix1003 divideint -2113204570705.27 53346631233.5280E+780 -> -0
mulx1003 multiply -2113204570705.27 53346631233.5280E+780 -> -1.12732344954420E+803 Inexact Rounded
powx1003 power -2113204570705.27 5 -> -4.21412784545439E+61 Inexact Rounded
remx1003 remainder -2113204570705.27 53346631233.5280E+780 -> -2113204570705.27
subx1003 subtract -2113204570705.27 53346631233.5280E+780 -> -5.33466312335280E+790 Inexact Rounded
addx1004 add 716740125138363 -4848.18795975963 -> 716740125133515 Inexact Rounded
comx1004 compare 716740125138363 -4848.18795975963 -> 1
divx1004 divide 716740125138363 -4848.18795975963 -> -147836703338.931 Inexact Rounded
dvix1004 divideint 716740125138363 -4848.18795975963 -> -147836703338
mulx1004 multiply 716740125138363 -4848.18795975963 -> -3.47489084497242E+18 Inexact Rounded
powx1004 power 716740125138363 -4848 -> 0E-1013 Underflow Subnormal Inexact Rounded
remx1004 remainder 716740125138363 -4848.18795975963 -> 4515.09790135506
subx1004 subtract 716740125138363 -4848.18795975963 -> 716740125143211 Inexact Rounded
addx1005 add -1218602754722.75E-964 -0419526805478.30 -> -419526805478.300 Inexact Rounded
comx1005 compare -1218602754722.75E-964 -0419526805478.30 -> 1
divx1005 divide -1218602754722.75E-964 -0419526805478.30 -> 2.90470772978005E-964 Inexact Rounded
dvix1005 divideint -1218602754722.75E-964 -0419526805478.30 -> 0
mulx1005 multiply -1218602754722.75E-964 -0419526805478.30 -> 5.11236520835892E-941 Inexact Rounded
powx1005 power -1218602754722.75E-964 -4 -> Infinity Overflow Inexact Rounded
remx1005 remainder -1218602754722.75E-964 -0419526805478.30 -> -1.21860275472275E-952
subx1005 subtract -1218602754722.75E-964 -0419526805478.30 -> 419526805478.300 Inexact Rounded
addx1006 add -71.6645394299675 6.01119074849858 -> -65.6533486814689 Inexact Rounded
comx1006 compare -71.6645394299675 6.01119074849858 -> -1
divx1006 divide -71.6645394299675 6.01119074849858 -> -11.9218541597382 Inexact Rounded
dvix1006 divideint -71.6645394299675 6.01119074849858 -> -11
mulx1006 multiply -71.6645394299675 6.01119074849858 -> -430.789216416832 Inexact Rounded
powx1006 power -71.6645394299675 6 -> 135464620503.675 Inexact Rounded
remx1006 remainder -71.6645394299675 6.01119074849858 -> -5.54144119648312
subx1006 subtract -71.6645394299675 6.01119074849858 -> -77.6757301784661 Inexact Rounded
addx1007 add 039773.153237912 -20856.7974824670E+084 -> -2.08567974824670E+88 Inexact Rounded
comx1007 compare 039773.153237912 -20856.7974824670E+084 -> 1
divx1007 divide 039773.153237912 -20856.7974824670E+084 -> -1.90696358208142E-84 Inexact Rounded
dvix1007 divideint 039773.153237912 -20856.7974824670E+084 -> -0
mulx1007 multiply 039773.153237912 -20856.7974824670E+084 -> -8.29540602322257E+92 Inexact Rounded
powx1007 power 039773.153237912 -2 -> 6.32149724609538E-10 Inexact Rounded
remx1007 remainder 039773.153237912 -20856.7974824670E+084 -> 39773.153237912
subx1007 subtract 039773.153237912 -20856.7974824670E+084 -> 2.08567974824670E+88 Inexact Rounded
addx1008 add 840516.430595738 97.5441312504855E-995 -> 840516.430595738 Inexact Rounded
comx1008 compare 840516.430595738 97.5441312504855E-995 -> 1
divx1008 divide 840516.430595738 97.5441312504855E-995 -> 8.61678114121863E+998 Inexact Rounded
dvix1008 divideint 840516.430595738 97.5441312504855E-995 -> NaN Division_impossible
mulx1008 multiply 840516.430595738 97.5441312504855E-995 -> 8.19874450242203E-988 Inexact Rounded
powx1008 power 840516.430595738 10 -> 1.75979498367764E+59 Inexact Rounded
remx1008 remainder 840516.430595738 97.5441312504855E-995 -> NaN Division_impossible
subx1008 subtract 840516.430595738 97.5441312504855E-995 -> 840516.430595738 Inexact Rounded
addx1009 add 5329582.14604250E-361 16.6914414308425 -> 16.6914414308425 Inexact Rounded
comx1009 compare 5329582.14604250E-361 16.6914414308425 -> -1
divx1009 divide 5329582.14604250E-361 16.6914414308425 -> 3.19300293394343E-356 Inexact Rounded
dvix1009 divideint 5329582.14604250E-361 16.6914414308425 -> 0
mulx1009 multiply 5329582.14604250E-361 16.6914414308425 -> 8.89584082415323E-354 Inexact Rounded
powx1009 power 5329582.14604250E-361 17 -> 0E-1013 Underflow Subnormal Inexact Rounded
remx1009 remainder 5329582.14604250E-361 16.6914414308425 -> 5.32958214604250E-355
subx1009 subtract 5329582.14604250E-361 16.6914414308425 -> -16.6914414308425 Inexact Rounded
addx1010 add -598091665350679 -123013.566595555 -> -598091665473693 Inexact Rounded
comx1010 compare -598091665350679 -123013.566595555 -> -1
divx1010 divide -598091665350679 -123013.566595555 -> 4861997598.33880 Inexact Rounded
dvix1010 divideint -598091665350679 -123013.566595555 -> 4861997598
mulx1010 multiply -598091665350679 -123013.566595555 -> 7.35733889058621E+19 Inexact Rounded
powx1010 power -598091665350679 -123014 -> 0E-1013 Underflow Subnormal Inexact Rounded
remx1010 remainder -598091665350679 -123013.566595555 -> -41677.552523110
subx1010 subtract -598091665350679 -123013.566595555 -> -598091665227665 Inexact Rounded
addx1011 add 6118.41098282993 1715357.34833423 -> 1721475.75931706 Inexact Rounded
comx1011 compare 6118.41098282993 1715357.34833423 -> -1
divx1011 divide 6118.41098282993 1715357.34833423 -> 0.00356684336868436 Inexact Rounded
dvix1011 divideint 6118.41098282993 1715357.34833423 -> 0
mulx1011 multiply 6118.41098282993 1715357.34833423 -> 10495261239.5262 Inexact Rounded
powx1011 power 6118.41098282993 1715357 -> Infinity Overflow Inexact Rounded
remx1011 remainder 6118.41098282993 1715357.34833423 -> 6118.41098282993
subx1011 subtract 6118.41098282993 1715357.34833423 -> -1709238.93735140 Inexact Rounded
addx1012 add -2183.88178218565 78632.0428613149 -> 76448.1610791293 Inexact Rounded
comx1012 compare -2183.88178218565 78632.0428613149 -> -1
divx1012 divide -2183.88178218565 78632.0428613149 -> -0.0277734331033140 Inexact Rounded
dvix1012 divideint -2183.88178218565 78632.0428613149 -> -0
mulx1012 multiply -2183.88178218565 78632.0428613149 -> -171723085.900867 Inexact Rounded
powx1012 power -2183.88178218565 78632 -> Infinity Overflow Inexact Rounded
remx1012 remainder -2183.88178218565 78632.0428613149 -> -2183.88178218565
subx1012 subtract -2183.88178218565 78632.0428613149 -> -80815.9246435006 Inexact Rounded
addx1013 add 4221209944454.47 -22222.1721468847 -> 4221209922232.30 Inexact Rounded
comx1013 compare 4221209944454.47 -22222.1721468847 -> 1
divx1013 divide 4221209944454.47 -22222.1721468847 -> -189954875.542904 Inexact Rounded
dvix1013 divideint 4221209944454.47 -22222.1721468847 -> -189954875
mulx1013 multiply 4221209944454.47 -22222.1721468847 -> -9.38044540538088E+16 Inexact Rounded
powx1013 power 4221209944454.47 -22222 -> 0E-1013 Underflow Subnormal Inexact Rounded
remx1013 remainder 4221209944454.47 -22222.1721468847 -> 12064.5051720875
subx1013 subtract 4221209944454.47 -22222.1721468847 -> 4221209966676.64 Inexact Rounded
addx1014 add 750024.068375406 -228575998328.565 -> -228575248304.497 Inexact Rounded
comx1014 compare 750024.068375406 -228575998328.565 -> 1
divx1014 divide 750024.068375406 -228575998328.565 -> -0.00000328128969734298 Inexact Rounded
dvix1014 divideint 750024.068375406 -228575998328.565 -> -0
mulx1014 multiply 750024.068375406 -228575998328.565 -> -1.71437500199360E+17 Inexact Rounded
powx1014 power 750024.068375406 -2 -> 1.77766368134219E-12 Inexact Rounded
remx1014 remainder 750024.068375406 -228575998328.565 -> 750024.068375406
subx1014 subtract 750024.068375406 -228575998328.565 -> 228576748352.633 Inexact Rounded
addx1015 add 89192288736894.5 -5335.28099244475 -> 89192288731559.2 Inexact Rounded
comx1015 compare 89192288736894.5 -5335.28099244475 -> 1
divx1015 divide 89192288736894.5 -5335.28099244475 -> -16717449158.3853 Inexact Rounded
dvix1015 divideint 89192288736894.5 -5335.28099244475 -> -16717449158
mulx1015 multiply 89192288736894.5 -5335.28099244475 -> -4.75865922770597E+17 Inexact Rounded
powx1015 power 89192288736894.5 -5335 -> 0E-1013 Underflow Subnormal Inexact Rounded
remx1015 remainder 89192288736894.5 -5335.28099244475 -> 2055.60975097950
subx1015 subtract 89192288736894.5 -5335.28099244475 -> 89192288742229.8 Inexact Rounded
addx1016 add -3307035372871.67E-826 48981.6810961387 -> 48981.6810961387 Inexact Rounded
comx1016 compare -3307035372871.67E-826 48981.6810961387 -> -1
divx1016 divide -3307035372871.67E-826 48981.6810961387 -> -6.75157589299721E-819 Inexact Rounded
dvix1016 divideint -3307035372871.67E-826 48981.6810961387 -> -0
mulx1016 multiply -3307035372871.67E-826 48981.6810961387 -> -1.61984152007650E-809 Inexact Rounded
powx1016 power -3307035372871.67E-826 48982 -> 0E-1013 Underflow Subnormal Inexact Rounded
remx1016 remainder -3307035372871.67E-826 48981.6810961387 -> -3.30703537287167E-814
subx1016 subtract -3307035372871.67E-826 48981.6810961387 -> -48981.6810961387 Inexact Rounded
addx1017 add 80780850273338.6E-347 -933388375247456 -> -933388375247456 Inexact Rounded
comx1017 compare 80780850273338.6E-347 -933388375247456 -> 1
divx1017 divide 80780850273338.6E-347 -933388375247456 -> -8.65458070997749E-349 Inexact Rounded
dvix1017 divideint 80780850273338.6E-347 -933388375247456 -> -0
mulx1017 multiply 80780850273338.6E-347 -933388375247456 -> -7.53999065877395E-319 Inexact Rounded
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -