003 File Manager
Current Path:
/usr/local/lib/python3.8/test/decimaltestdata
usr
/
local
/
lib
/
python3.8
/
test
/
decimaltestdata
/
📁
..
📄
abs.decTest
(6.14 KB)
📄
add.decTest
(137.05 KB)
📄
and.decTest
(15.98 KB)
📄
base.decTest
(59.92 KB)
📄
clamp.decTest
(10.75 KB)
📄
class.decTest
(6.23 KB)
📄
compare.decTest
(28.93 KB)
📄
comparetotal.decTest
(33.62 KB)
📄
comparetotmag.decTest
(35.28 KB)
📄
copy.decTest
(3.3 KB)
📄
copyabs.decTest
(3.4 KB)
📄
copynegate.decTest
(3.59 KB)
📄
copysign.decTest
(7.21 KB)
📄
ddAbs.decTest
(4.79 KB)
📄
ddAdd.decTest
(76.26 KB)
📄
ddAnd.decTest
(18.18 KB)
📄
ddBase.decTest
(53.18 KB)
📄
ddCanonical.decTest
(18.46 KB)
📄
ddClass.decTest
(3.82 KB)
📄
ddCompare.decTest
(29.57 KB)
📄
ddCompareSig.decTest
(27.74 KB)
📄
ddCompareTotal.decTest
(29.92 KB)
📄
ddCompareTotalMag.decTest
(31.66 KB)
📄
ddCopy.decTest
(3.54 KB)
📄
ddCopyAbs.decTest
(3.64 KB)
📄
ddCopyNegate.decTest
(3.79 KB)
📄
ddCopySign.decTest
(7.45 KB)
📄
ddDivide.decTest
(47.01 KB)
📄
ddDivideInt.decTest
(19.13 KB)
📄
ddEncode.decTest
(24.11 KB)
📄
ddFMA.decTest
(99.79 KB)
📄
ddInvert.decTest
(10.12 KB)
📄
ddLogB.decTest
(6.09 KB)
📄
ddMax.decTest
(12.03 KB)
📄
ddMaxMag.decTest
(12.44 KB)
📄
ddMin.decTest
(11.69 KB)
📄
ddMinMag.decTest
(11.35 KB)
📄
ddMinus.decTest
(3.7 KB)
📄
ddMultiply.decTest
(28.62 KB)
📄
ddNextMinus.decTest
(6.67 KB)
📄
ddNextPlus.decTest
(6.57 KB)
📄
ddNextToward.decTest
(24.4 KB)
📄
ddOr.decTest
(15.65 KB)
📄
ddPlus.decTest
(3.66 KB)
📄
ddQuantize.decTest
(41.5 KB)
📄
ddReduce.decTest
(7.29 KB)
📄
ddRemainder.decTest
(26.35 KB)
📄
ddRemainderNear.decTest
(29.55 KB)
📄
ddRotate.decTest
(13.75 KB)
📄
ddSameQuantum.decTest
(17.13 KB)
📄
ddScaleB.decTest
(12.49 KB)
📄
ddShift.decTest
(13.1 KB)
📄
ddSubtract.decTest
(34.57 KB)
📄
ddToIntegral.decTest
(11.91 KB)
📄
ddXor.decTest
(17.29 KB)
📄
decDouble.decTest
(2.16 KB)
📄
decQuad.decTest
(2.16 KB)
📄
decSingle.decTest
(1.42 KB)
📄
divide.decTest
(36.92 KB)
📄
divideint.decTest
(19.96 KB)
📄
dqAbs.decTest
(5.15 KB)
📄
dqAdd.decTest
(87.11 KB)
📄
dqAnd.decTest
(28.44 KB)
📄
dqBase.decTest
(57.57 KB)
📄
dqCanonical.decTest
(26.68 KB)
📄
dqClass.decTest
(3.93 KB)
📄
dqCompare.decTest
(32.35 KB)
📄
dqCompareSig.decTest
(29 KB)
📄
dqCompareTotal.decTest
(30.12 KB)
📄
dqCompareTotalMag.decTest
(31.86 KB)
📄
dqCopy.decTest
(3.89 KB)
📄
dqCopyAbs.decTest
(4 KB)
📄
dqCopyNegate.decTest
(4.15 KB)
📄
dqCopySign.decTest
(8.04 KB)
📄
dqDivide.decTest
(53.81 KB)
📄
dqDivideInt.decTest
(19.36 KB)
📄
dqEncode.decTest
(30.69 KB)
📄
dqFMA.decTest
(126.94 KB)
📄
dqInvert.decTest
(15.75 KB)
📄
dqLogB.decTest
(6.23 KB)
📄
dqMax.decTest
(12.06 KB)
📄
dqMaxMag.decTest
(12.49 KB)
📄
dqMin.decTest
(11.72 KB)
📄
dqMinMag.decTest
(11.38 KB)
📄
dqMinus.decTest
(4.06 KB)
📄
dqMultiply.decTest
(31.73 KB)
📄
dqNextMinus.decTest
(8.45 KB)
📄
dqNextPlus.decTest
(8.33 KB)
📄
dqNextToward.decTest
(29.03 KB)
📄
dqOr.decTest
(29.9 KB)
📄
dqPlus.decTest
(4.02 KB)
📄
dqQuantize.decTest
(42.08 KB)
📄
dqReduce.decTest
(7.64 KB)
📄
dqRemainder.decTest
(26.92 KB)
📄
dqRemainderNear.decTest
(30.56 KB)
📄
dqRotate.decTest
(20.49 KB)
📄
dqSameQuantum.decTest
(17.72 KB)
📄
dqScaleB.decTest
(15.68 KB)
📄
dqShift.decTest
(18.98 KB)
📄
dqSubtract.decTest
(40.95 KB)
📄
dqToIntegral.decTest
(11.94 KB)
📄
dqXor.decTest
(27.6 KB)
📄
dsBase.decTest
(48.4 KB)
📄
dsEncode.decTest
(15.51 KB)
📄
exp.decTest
(38.52 KB)
📄
extra.decTest
(90.34 KB)
📄
fma.decTest
(190.75 KB)
📄
inexact.decTest
(10.25 KB)
📄
invert.decTest
(8.09 KB)
📄
ln.decTest
(34.69 KB)
📄
log10.decTest
(31.93 KB)
📄
logb.decTest
(7.15 KB)
📄
max.decTest
(15.6 KB)
📄
maxmag.decTest
(16.95 KB)
📄
min.decTest
(15.32 KB)
📄
minmag.decTest
(15.08 KB)
📄
minus.decTest
(7.25 KB)
📄
multiply.decTest
(37.42 KB)
📄
nextminus.decTest
(6.78 KB)
📄
nextplus.decTest
(6.76 KB)
📄
nexttoward.decTest
(24.63 KB)
📄
or.decTest
(15.49 KB)
📄
plus.decTest
(7.7 KB)
📄
power.decTest
(92.75 KB)
📄
powersqrt.decTest
(154.94 KB)
📄
quantize.decTest
(46.17 KB)
📄
randomBound32.decTest
(297.37 KB)
📄
randoms.decTest
(284.25 KB)
📄
reduce.decTest
(9.1 KB)
📄
remainder.decTest
(26.49 KB)
📄
remainderNear.decTest
(24.43 KB)
📄
rescale.decTest
(34.43 KB)
📄
rotate.decTest
(11.61 KB)
📄
rounding.decTest
(62.28 KB)
📄
samequantum.decTest
(15.82 KB)
📄
scaleb.decTest
(9.68 KB)
📄
shift.decTest
(11.4 KB)
📄
squareroot.decTest
(187.95 KB)
📄
subtract.decTest
(43.27 KB)
📄
testall.decTest
(2.67 KB)
📄
tointegral.decTest
(8.66 KB)
📄
tointegralx.decTest
(11.58 KB)
📄
xor.decTest
(15.95 KB)
Editing: rotate.decTest
------------------------------------------------------------------------ -- rotate.decTest -- rotate coefficient left or right -- -- Copyright (c) IBM Corporation, 1981, 2008. 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.59 extended: 1 precision: 9 rounding: half_up maxExponent: 999 minExponent: -999 -- Sanity check rotx001 rotate 0 0 -> 0 rotx002 rotate 0 2 -> 0 rotx003 rotate 1 2 -> 100 rotx004 rotate 34 8 -> 400000003 rotx005 rotate 1 9 -> 1 rotx006 rotate 1 -1 -> 100000000 rotx007 rotate 123456789 -1 -> 912345678 rotx008 rotate 123456789 -8 -> 234567891 rotx009 rotate 123456789 -9 -> 123456789 rotx010 rotate 0 -2 -> 0 -- rhs must be an integer rotx011 rotate 1 1.5 -> NaN Invalid_operation rotx012 rotate 1 1.0 -> NaN Invalid_operation rotx013 rotate 1 0.1 -> NaN Invalid_operation rotx014 rotate 1 0.0 -> NaN Invalid_operation rotx015 rotate 1 1E+1 -> NaN Invalid_operation rotx016 rotate 1 1E+99 -> NaN Invalid_operation rotx017 rotate 1 Inf -> NaN Invalid_operation rotx018 rotate 1 -Inf -> NaN Invalid_operation -- and |rhs| <= precision rotx020 rotate 1 -1000 -> NaN Invalid_operation rotx021 rotate 1 -10 -> NaN Invalid_operation rotx022 rotate 1 10 -> NaN Invalid_operation rotx023 rotate 1 1000 -> NaN Invalid_operation -- full pattern rotx030 rotate 123456789 -9 -> 123456789 rotx031 rotate 123456789 -8 -> 234567891 rotx032 rotate 123456789 -7 -> 345678912 rotx033 rotate 123456789 -6 -> 456789123 rotx034 rotate 123456789 -5 -> 567891234 rotx035 rotate 123456789 -4 -> 678912345 rotx036 rotate 123456789 -3 -> 789123456 rotx037 rotate 123456789 -2 -> 891234567 rotx038 rotate 123456789 -1 -> 912345678 rotx039 rotate 123456789 -0 -> 123456789 rotx040 rotate 123456789 +0 -> 123456789 rotx041 rotate 123456789 +1 -> 234567891 rotx042 rotate 123456789 +2 -> 345678912 rotx043 rotate 123456789 +3 -> 456789123 rotx044 rotate 123456789 +4 -> 567891234 rotx045 rotate 123456789 +5 -> 678912345 rotx046 rotate 123456789 +6 -> 789123456 rotx047 rotate 123456789 +7 -> 891234567 rotx048 rotate 123456789 +8 -> 912345678 rotx049 rotate 123456789 +9 -> 123456789 -- zeros rotx060 rotate 0E-10 +9 -> 0E-10 rotx061 rotate 0E-10 -9 -> 0E-10 rotx062 rotate 0.000 +9 -> 0.000 rotx063 rotate 0.000 -9 -> 0.000 rotx064 rotate 0E+10 +9 -> 0E+10 rotx065 rotate 0E+10 -9 -> 0E+10 rotx066 rotate -0E-10 +9 -> -0E-10 rotx067 rotate -0E-10 -9 -> -0E-10 rotx068 rotate -0.000 +9 -> -0.000 rotx069 rotate -0.000 -9 -> -0.000 rotx070 rotate -0E+10 +9 -> -0E+10 rotx071 rotate -0E+10 -9 -> -0E+10 -- Nmax, Nmin, Ntiny rotx141 rotate 9.99999999E+999 -1 -> 9.99999999E+999 rotx142 rotate 9.99999999E+999 -8 -> 9.99999999E+999 rotx143 rotate 9.99999999E+999 1 -> 9.99999999E+999 rotx144 rotate 9.99999999E+999 8 -> 9.99999999E+999 rotx145 rotate 1E-999 -1 -> 1.00000000E-991 rotx146 rotate 1E-999 -8 -> 1.0E-998 rotx147 rotate 1E-999 1 -> 1.0E-998 rotx148 rotate 1E-999 8 -> 1.00000000E-991 rotx151 rotate 1.00000000E-999 -1 -> 1.0000000E-1000 rotx152 rotate 1.00000000E-999 -8 -> 1E-1007 rotx153 rotate 1.00000000E-999 1 -> 1E-1007 rotx154 rotate 1.00000000E-999 8 -> 1.0000000E-1000 rotx155 rotate 9.00000000E-999 -1 -> 9.0000000E-1000 rotx156 rotate 9.00000000E-999 -8 -> 9E-1007 rotx157 rotate 9.00000000E-999 1 -> 9E-1007 rotx158 rotate 9.00000000E-999 8 -> 9.0000000E-1000 rotx160 rotate 1E-1007 -1 -> 1.00000000E-999 rotx161 rotate 1E-1007 -8 -> 1.0E-1006 rotx162 rotate 1E-1007 1 -> 1.0E-1006 rotx163 rotate 1E-1007 8 -> 1.00000000E-999 -- negatives rotx171 rotate -9.99999999E+999 -1 -> -9.99999999E+999 rotx172 rotate -9.99999999E+999 -8 -> -9.99999999E+999 rotx173 rotate -9.99999999E+999 1 -> -9.99999999E+999 rotx174 rotate -9.99999999E+999 8 -> -9.99999999E+999 rotx175 rotate -1E-999 -1 -> -1.00000000E-991 rotx176 rotate -1E-999 -8 -> -1.0E-998 rotx177 rotate -1E-999 1 -> -1.0E-998 rotx178 rotate -1E-999 8 -> -1.00000000E-991 rotx181 rotate -1.00000000E-999 -1 -> -1.0000000E-1000 rotx182 rotate -1.00000000E-999 -8 -> -1E-1007 rotx183 rotate -1.00000000E-999 1 -> -1E-1007 rotx184 rotate -1.00000000E-999 8 -> -1.0000000E-1000 rotx185 rotate -9.00000000E-999 -1 -> -9.0000000E-1000 rotx186 rotate -9.00000000E-999 -8 -> -9E-1007 rotx187 rotate -9.00000000E-999 1 -> -9E-1007 rotx188 rotate -9.00000000E-999 8 -> -9.0000000E-1000 rotx190 rotate -1E-1007 -1 -> -1.00000000E-999 rotx191 rotate -1E-1007 -8 -> -1.0E-1006 rotx192 rotate -1E-1007 1 -> -1.0E-1006 rotx193 rotate -1E-1007 8 -> -1.00000000E-999 -- more negatives (of sanities) rotx201 rotate -0 0 -> -0 rotx202 rotate -0 2 -> -0 rotx203 rotate -1 2 -> -100 rotx204 rotate -1 8 -> -100000000 rotx205 rotate -1 9 -> -1 rotx206 rotate -1 -1 -> -100000000 rotx207 rotate -123456789 -1 -> -912345678 rotx208 rotate -123456789 -8 -> -234567891 rotx209 rotate -123456789 -9 -> -123456789 rotx210 rotate -0 -2 -> -0 -- Specials; NaNs are handled as usual rotx781 rotate -Inf -8 -> -Infinity rotx782 rotate -Inf -1 -> -Infinity rotx783 rotate -Inf -0 -> -Infinity rotx784 rotate -Inf 0 -> -Infinity rotx785 rotate -Inf 1 -> -Infinity rotx786 rotate -Inf 8 -> -Infinity rotx787 rotate -1000 -Inf -> NaN Invalid_operation rotx788 rotate -Inf -Inf -> NaN Invalid_operation rotx789 rotate -1 -Inf -> NaN Invalid_operation rotx790 rotate -0 -Inf -> NaN Invalid_operation rotx791 rotate 0 -Inf -> NaN Invalid_operation rotx792 rotate 1 -Inf -> NaN Invalid_operation rotx793 rotate 1000 -Inf -> NaN Invalid_operation rotx794 rotate Inf -Inf -> NaN Invalid_operation rotx800 rotate Inf -Inf -> NaN Invalid_operation rotx801 rotate Inf -8 -> Infinity rotx802 rotate Inf -1 -> Infinity rotx803 rotate Inf -0 -> Infinity rotx804 rotate Inf 0 -> Infinity rotx805 rotate Inf 1 -> Infinity rotx806 rotate Inf 8 -> Infinity rotx807 rotate Inf Inf -> NaN Invalid_operation rotx808 rotate -1000 Inf -> NaN Invalid_operation rotx809 rotate -Inf Inf -> NaN Invalid_operation rotx810 rotate -1 Inf -> NaN Invalid_operation rotx811 rotate -0 Inf -> NaN Invalid_operation rotx812 rotate 0 Inf -> NaN Invalid_operation rotx813 rotate 1 Inf -> NaN Invalid_operation rotx814 rotate 1000 Inf -> NaN Invalid_operation rotx815 rotate Inf Inf -> NaN Invalid_operation rotx821 rotate NaN -Inf -> NaN rotx822 rotate NaN -1000 -> NaN rotx823 rotate NaN -1 -> NaN rotx824 rotate NaN -0 -> NaN rotx825 rotate NaN 0 -> NaN rotx826 rotate NaN 1 -> NaN rotx827 rotate NaN 1000 -> NaN rotx828 rotate NaN Inf -> NaN rotx829 rotate NaN NaN -> NaN rotx830 rotate -Inf NaN -> NaN rotx831 rotate -1000 NaN -> NaN rotx832 rotate -1 NaN -> NaN rotx833 rotate -0 NaN -> NaN rotx834 rotate 0 NaN -> NaN rotx835 rotate 1 NaN -> NaN rotx836 rotate 1000 NaN -> NaN rotx837 rotate Inf NaN -> NaN rotx841 rotate sNaN -Inf -> NaN Invalid_operation rotx842 rotate sNaN -1000 -> NaN Invalid_operation rotx843 rotate sNaN -1 -> NaN Invalid_operation rotx844 rotate sNaN -0 -> NaN Invalid_operation rotx845 rotate sNaN 0 -> NaN Invalid_operation rotx846 rotate sNaN 1 -> NaN Invalid_operation rotx847 rotate sNaN 1000 -> NaN Invalid_operation rotx848 rotate sNaN NaN -> NaN Invalid_operation rotx849 rotate sNaN sNaN -> NaN Invalid_operation rotx850 rotate NaN sNaN -> NaN Invalid_operation rotx851 rotate -Inf sNaN -> NaN Invalid_operation rotx852 rotate -1000 sNaN -> NaN Invalid_operation rotx853 rotate -1 sNaN -> NaN Invalid_operation rotx854 rotate -0 sNaN -> NaN Invalid_operation rotx855 rotate 0 sNaN -> NaN Invalid_operation rotx856 rotate 1 sNaN -> NaN Invalid_operation rotx857 rotate 1000 sNaN -> NaN Invalid_operation rotx858 rotate Inf sNaN -> NaN Invalid_operation rotx859 rotate NaN sNaN -> NaN Invalid_operation -- propagating NaNs rotx861 rotate NaN1 -Inf -> NaN1 rotx862 rotate +NaN2 -1000 -> NaN2 rotx863 rotate NaN3 1000 -> NaN3 rotx864 rotate NaN4 Inf -> NaN4 rotx865 rotate NaN5 +NaN6 -> NaN5 rotx866 rotate -Inf NaN7 -> NaN7 rotx867 rotate -1000 NaN8 -> NaN8 rotx868 rotate 1000 NaN9 -> NaN9 rotx869 rotate Inf +NaN10 -> NaN10 rotx871 rotate sNaN11 -Inf -> NaN11 Invalid_operation rotx872 rotate sNaN12 -1000 -> NaN12 Invalid_operation rotx873 rotate sNaN13 1000 -> NaN13 Invalid_operation rotx874 rotate sNaN14 NaN17 -> NaN14 Invalid_operation rotx875 rotate sNaN15 sNaN18 -> NaN15 Invalid_operation rotx876 rotate NaN16 sNaN19 -> NaN19 Invalid_operation rotx877 rotate -Inf +sNaN20 -> NaN20 Invalid_operation rotx878 rotate -1000 sNaN21 -> NaN21 Invalid_operation rotx879 rotate 1000 sNaN22 -> NaN22 Invalid_operation rotx880 rotate Inf sNaN23 -> NaN23 Invalid_operation rotx881 rotate +NaN25 +sNaN24 -> NaN24 Invalid_operation rotx882 rotate -NaN26 NaN28 -> -NaN26 rotx883 rotate -sNaN27 sNaN29 -> -NaN27 Invalid_operation rotx884 rotate 1000 -NaN30 -> -NaN30 rotx885 rotate 1000 -sNaN31 -> -NaN31 Invalid_operation -- payload decapitate precision: 5 rotx886 rotate 11 -sNaN1234567890 -> -NaN67890 Invalid_operation
Upload File
Create Folder