diff --git a/src/arithmetic.jl b/src/arithmetic.jl index 2f482ea..be60875 100644 --- a/src/arithmetic.jl +++ b/src/arithmetic.jl @@ -110,8 +110,11 @@ function Base.:(+)(x::Decimal, y::Decimal) end end -# Subtraction -Base.:(-)(x::Decimal, y::Decimal) = +(x, -y) +function Base.:(-)(x::Decimal, y::Decimal) + # Doing `x + (-y)` might involve intermediate rounding due to `-y` + y = Decimal(!y.s, y.c, y.q) + return x + y +end function Base.:(*)(x::Decimal, y::Decimal) s = x.s != y.s diff --git a/test/dectests/test_subtract.jl b/test/dectests/test_subtract.jl new file mode 100644 index 0000000..4be5245 --- /dev/null +++ b/test/dectests/test_subtract.jl @@ -0,0 +1,1197 @@ +using Decimals +using ScopedValues +using Test +using Decimals: @with_context + +@testset "Subtract" begin + # subx001 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"0" == dec"0" + # subx002 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"1" == dec"0" + # subx003 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"2" == dec"-1" + # subx004 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"2" - dec"1" == dec"1" + # subx005 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"2" - dec"2" == dec"0" + # subx006 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"2" == dec"1" + # subx007 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"2" - dec"3" == dec"-1" + # subx011 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-0" - dec"0" == dec"-0" + # subx012 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-1" - dec"1" == dec"-2" + # subx013 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-1" - dec"2" == dec"-3" + # subx014 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-2" - dec"1" == dec"-3" + # subx015 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-2" - dec"2" == dec"-4" + # subx016 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-3" - dec"2" == dec"-5" + # subx017 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-2" - dec"3" == dec"-5" + # subx021 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0" == dec"0" + # subx022 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"-1" == dec"2" + # subx023 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"-2" == dec"3" + # subx024 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"2" - dec"-1" == dec"3" + # subx025 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"2" - dec"-2" == dec"4" + # subx026 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"-2" == dec"5" + # subx027 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"2" - dec"-3" == dec"5" + # subx030 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"11" - dec"1" == dec"10" + # subx031 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10" - dec"1" == dec"9" + # subx032 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"9" - dec"1" == dec"8" + # subx033 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"1" == dec"0" + # subx034 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"1" == dec"-1" + # subx035 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-1" - dec"1" == dec"-2" + # subx036 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-9" - dec"1" == dec"-10" + # subx037 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-10" - dec"1" == dec"-11" + # subx038 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-11" - dec"1" == dec"-12" + # subx040 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"5.75" - dec"3.3" == dec"2.45" + # subx041 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"5" - dec"-3" == dec"8" + # subx042 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5" - dec"-3" == dec"-2" + # subx043 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-7" - dec"2.5" == dec"-9.5" + # subx044 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.7" - dec"0.3" == dec"0.4" + # subx045 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.3" - dec"0.3" == dec"1.0" + # subx046 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.25" - dec"1.25" == dec"0.00" + # subx050 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.23456789" - dec"1.00000000" == dec"0.23456789" + # subx051 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.23456789" - dec"1.00000089" == dec"0.23456700" + # subx052 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.5555555559" - dec"0.0000000001" == dec"0.555555556" + # subx053 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.5555555559" - dec"0.0000000005" == dec"0.555555555" + # subx054 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444444" - dec"0.1111111111" == dec"0.333333333" + # subx055 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.0000000000" - dec"0.00000001" == dec"0.999999990" + # subx056 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444444999" - dec"0" == dec"0.444444444" + # subx057 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444445000" - dec"0" == dec"0.444444445" + # subx060 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"70" - dec"10000e+9" == dec"-1.00000000e+13" + # subx061 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"700" - dec"10000e+9" == dec"-1.00000000e+13" + # subx062 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"7000" - dec"10000e+9" == dec"-9.99999999e+12" + # subx063 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"70000" - dec"10000e+9" == dec"-9.99999993e+12" + # subx064 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"700000" - dec"10000e+9" == dec"-9.99999930e+12" + # subx065 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70" == dec"1.00000000e+13" + # subx066 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"700" == dec"1.00000000e+13" + # subx067 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"7000" == dec"9.99999999e+12" + # subx068 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70000" == dec"9.99999993e+12" + # subx069 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"700000" == dec"9.99999930e+12" + # subx080 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70000" == dec"9.99999993e+12" + # subx081 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70000" == dec"1.00000e+13" + # subx090 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00.0" - dec"0.0" == dec"0.0" + # subx091 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00.0" - dec"0.00" == dec"0.00" + # subx092 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.00" - dec"00.0" == dec"0.00" + # subx093 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00.0" - dec"0.00" == dec"0.00" + # subx094 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.00" - dec"00.0" == dec"0.00" + # subx095 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec".3" == dec"2.7" + # subx096 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3." - dec".3" == dec"2.7" + # subx097 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3.0" - dec".3" == dec"2.7" + # subx098 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3.00" - dec".3" == dec"2.70" + # subx099 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"3" == dec"0" + # subx100 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"+3" == dec"0" + # subx101 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"-3" == dec"6" + # subx102 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"0.3" == dec"2.7" + # subx103 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3." - dec"0.3" == dec"2.7" + # subx104 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3.0" - dec"0.3" == dec"2.7" + # subx105 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3.00" - dec"0.3" == dec"2.70" + # subx106 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"3.0" == dec"0.0" + # subx107 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"+3.0" == dec"0.0" + # subx108 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"3" - dec"-3.0" == dec"6.0" + # subx120 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456784" - dec"10.23456789" == dec"-5e-8" + # subx121 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456785" - dec"10.23456789" == dec"-4e-8" + # subx122 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456786" - dec"10.23456789" == dec"-3e-8" + # subx123 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456787" - dec"10.23456789" == dec"-2e-8" + # subx124 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456788" - dec"10.23456789" == dec"-1e-8" + # subx125 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456789" - dec"10.23456789" == dec"0e-8" + # subx126 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456790" - dec"10.23456789" == dec"1e-8" + # subx127 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456791" - dec"10.23456789" == dec"2e-8" + # subx128 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456792" - dec"10.23456789" == dec"3e-8" + # subx129 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456793" - dec"10.23456789" == dec"4e-8" + # subx130 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456794" - dec"10.23456789" == dec"5e-8" + # subx131 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456781" - dec"10.23456786" == dec"-5e-8" + # subx132 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456782" - dec"10.23456786" == dec"-4e-8" + # subx133 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456783" - dec"10.23456786" == dec"-3e-8" + # subx134 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456784" - dec"10.23456786" == dec"-2e-8" + # subx135 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456785" - dec"10.23456786" == dec"-1e-8" + # subx136 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456786" - dec"10.23456786" == dec"0e-8" + # subx137 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456787" - dec"10.23456786" == dec"1e-8" + # subx138 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456788" - dec"10.23456786" == dec"2e-8" + # subx139 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456789" - dec"10.23456786" == dec"3e-8" + # subx140 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456790" - dec"10.23456786" == dec"4e-8" + # subx141 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10.23456791" - dec"10.23456786" == dec"5e-8" + # subx142 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.999999999" == dec"1e-9" + # subx143 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.999999999" - dec"1" == dec"-1e-9" + # subx144 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-10.23456780" - dec"-10.23456786" == dec"6e-8" + # subx145 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-10.23456790" - dec"-10.23456786" == dec"-4e-8" + # subx146 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-10.23456791" - dec"-10.23456786" == dec"-5e-8" + # subx150 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"12345678900000" - dec"9999999999999" == dec"2.35e+12" + # subx151 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"9999999999999" - dec"12345678900000" == dec"-2.35e+12" + # subx152 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"12345678900000" - dec"9999999999999" == dec"2.34568e+12" + # subx153 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"9999999999999" - dec"12345678900000" == dec"-2.34568e+12" + # subx154 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"12345678900000" - dec"9999999999999" == dec"2.34567890e+12" + # subx155 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"9999999999999" - dec"12345678900000" == dec"-2.34567890e+12" + # subx156 + @with_context (Emax=384, Emin=-383, precision=12, rounding=RoundNearestTiesAway) @test dec"12345678900000" - dec"9999999999999" == dec"2.34567890000e+12" + # subx157 + @with_context (Emax=384, Emin=-383, precision=12, rounding=RoundNearestTiesAway) @test dec"9999999999999" - dec"12345678900000" == dec"-2.34567890000e+12" + # subx158 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"12345678900000" - dec"9999999999999" == dec"2345678900001" + # subx159 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"9999999999999" - dec"12345678900000" == dec"-2345678900001" + # subx160 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".1" == dec"-0.1" + # subx161 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00" - dec".97983" == dec"-0.97983" + # subx162 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".9" == dec"-0.9" + # subx163 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.102" == dec"-0.102" + # subx164 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".4" == dec"-0.4" + # subx165 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".307" == dec"-0.307" + # subx166 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".43822" == dec"-0.43822" + # subx167 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".911" == dec"-0.911" + # subx168 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec".0" - dec".02" == dec"-0.02" + # subx169 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00" - dec".392" == dec"-0.392" + # subx170 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".26" == dec"-0.26" + # subx171 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.51" == dec"-0.51" + # subx172 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".2234" == dec"-0.2234" + # subx173 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec".2" == dec"-0.2" + # subx174 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec".0" - dec".0008" == dec"-0.0008" + # subx180 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.1" == dec"0.1" + # subx181 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.00" - dec"-.97983" == dec"0.97983" + # subx182 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.9" == dec"0.9" + # subx183 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-0.102" == dec"0.102" + # subx184 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.4" == dec"0.4" + # subx185 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.307" == dec"0.307" + # subx186 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.43822" == dec"0.43822" + # subx187 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.911" == dec"0.911" + # subx188 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.02" == dec"0.02" + # subx189 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.00" - dec"-.392" == dec"0.392" + # subx190 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.26" == dec"0.26" + # subx191 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-0.51" == dec"0.51" + # subx192 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.2234" == dec"0.2234" + # subx193 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.2" == dec"0.2" + # subx194 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"-.0008" == dec"0.0008" + # subx200 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.1" == dec"0.1" + # subx201 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00" - dec"-.97983" == dec"0.97983" + # subx202 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.9" == dec"0.9" + # subx203 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.102" == dec"0.102" + # subx204 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.4" == dec"0.4" + # subx205 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.307" == dec"0.307" + # subx206 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.43822" == dec"0.43822" + # subx207 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.911" == dec"0.911" + # subx208 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec".0" - dec"-.02" == dec"0.02" + # subx209 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"00" - dec"-.392" == dec"0.392" + # subx210 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.26" == dec"0.26" + # subx211 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.51" == dec"0.51" + # subx212 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.2234" == dec"0.2234" + # subx213 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-.2" == dec"0.2" + # subx214 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec".0" - dec"-.0008" == dec"0.0008" + # subx220 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-12" - dec"0" == dec"-5.6267e-8" + # subx221 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-11" - dec"0" == dec"-5.6267e-7" + # subx222 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-10" - dec"0" == dec"-0.0000056267" + # subx223 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-9" - dec"0" == dec"-0.000056267" + # subx224 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-8" - dec"0" == dec"-0.00056267" + # subx225 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-7" - dec"0" == dec"-0.0056267" + # subx226 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-6" - dec"0" == dec"-0.056267" + # subx227 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-5" - dec"0" == dec"-0.56267" + # subx228 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-2" - dec"0" == dec"-562.67" + # subx229 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-1" - dec"0" == dec"-5626.7" + # subx230 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-0" - dec"0" == dec"-56267" + # subx240 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-12" == dec"5.6267e-8" + # subx241 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-11" == dec"5.6267e-7" + # subx242 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-10" == dec"0.0000056267" + # subx243 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-9" == dec"0.000056267" + # subx244 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-8" == dec"0.00056267" + # subx245 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-7" == dec"0.0056267" + # subx246 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-6" == dec"0.056267" + # subx247 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-5" == dec"0.56267" + # subx248 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-2" == dec"562.67" + # subx249 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-1" == dec"5626.7" + # subx250 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-0" == dec"56267" + # subx301 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.23456789" - dec"1.00000000" == dec"0.23456789" + # subx302 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.23456789" - dec"1.00000011" == dec"0.23456778" + # subx311 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444444" - dec"0.5555555555" == dec"-0.111111111" + # subx312 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444440" - dec"0.5555555555" == dec"-0.111111112" + # subx313 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444444" - dec"0.5555555550" == dec"-0.111111111" + # subx314 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.44444444449" - dec"0" == dec"0.444444444" + # subx315 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.444444444499" - dec"0" == dec"0.444444444" + # subx316 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444444999" - dec"0" == dec"0.444444444" + # subx317 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444445000" - dec"0" == dec"0.444444445" + # subx318 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4444444445001" - dec"0" == dec"0.444444445" + # subx319 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.444444444501" - dec"0" == dec"0.444444445" + # subx320 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.44444444451" - dec"0" == dec"0.444444445" + # subx321 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"0.0000" == dec"0.9998" + # subx322 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"0.0001" == dec"0.9997" + # subx323 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"0.0002" == dec"0.9996" + # subx324 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"0.0003" == dec"0.9995" + # subx325 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"-0.0000" == dec"0.9998" + # subx326 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"-0.0001" == dec"0.9999" + # subx327 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"-0.0002" == dec"1.0000" + # subx328 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9998" - dec"-0.0003" == dec"1.0001" + # subx330 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"70" - dec"10000e+9" == dec"-1.00000000e+13" + # subx331 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"700" - dec"10000e+9" == dec"-1.00000000e+13" + # subx332 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"7000" - dec"10000e+9" == dec"-9.99999999e+12" + # subx333 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"70000" - dec"10000e+9" == dec"-9.99999993e+12" + # subx334 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"700000" - dec"10000e+9" == dec"-9.99999930e+12" + # subx335 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"7000000" - dec"10000e+9" == dec"-9.99999300e+12" + # subx340 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70" == dec"1.00000000e+13" + # subx341 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"700" == dec"1.00000000e+13" + # subx342 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"7000" == dec"9.99999999e+12" + # subx343 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70000" == dec"9.99999993e+12" + # subx344 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"700000" == dec"9.99999930e+12" + # subx345 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"7000000" == dec"9.99999300e+12" + # subx346 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"7" == dec"9999999999993" + # subx347 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70" == dec"9999999999930" + # subx348 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"700" == dec"9999999999300" + # subx349 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"7000" == dec"9999999993000" + # subx350 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70000" == dec"9999999930000" + # subx351 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"700000" == dec"9999999300000" + # subx352 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"7" - dec"10000e+9" == dec"-9999999999993" + # subx353 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"70" - dec"10000e+9" == dec"-9999999999930" + # subx354 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"700" - dec"10000e+9" == dec"-9999999999300" + # subx355 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"7000" - dec"10000e+9" == dec"-9999999993000" + # subx356 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"70000" - dec"10000e+9" == dec"-9999999930000" + # subx357 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"700000" - dec"10000e+9" == dec"-9999999300000" + # subx360 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"10000e+9" - dec"70000" == dec"1.00000e+13" + # subx361 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.0001" == dec"0.9999" + # subx362 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.00001" == dec"0.99999" + # subx363 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.000001" == dec"0.999999" + # subx364 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.0000001" == dec"1.00000" + # subx365 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.00000001" == dec"1.00000" + # subx370 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0" == dec"1" + # subx371 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0." == dec"1" + # subx372 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec".0" == dec"1.0" + # subx373 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"1" - dec"0.0" == dec"1.0" + # subx374 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"0" - dec"1" == dec"-1" + # subx375 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"0." - dec"1" == dec"-1" + # subx376 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec".0" - dec"1" == dec"-1.0" + # subx377 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"0.0" - dec"1" == dec"-1.0" + # subx910 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-103519362" - dec"-51897955.3" == dec"-51621406.7" + # subx911 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"159579.444" - dec"89827.5229" == dec"69751.9211" + # subx920 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"333.123456" - dec"33.1234566" == dec"299.999999" + # subx921 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"333.123456" - dec"33.1234565" == dec"300.000000" + # subx922 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"133.123456" - dec"33.1234565" == dec"99.9999995" + # subx923 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"133.123456" - dec"33.1234564" == dec"99.9999996" + # subx924 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"133.123456" - dec"33.1234540" == dec"100.000002" + # subx925 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"133.123456" - dec"43.1234560" == dec"90.0000000" + # subx926 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"133.123456" - dec"43.1234561" == dec"89.9999999" + # subx927 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"133.123456" - dec"43.1234566" == dec"89.9999994" + # subx928 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"101.123456" - dec"91.1234566" == dec"9.9999994" + # subx929 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"101.123456" - dec"99.1234566" == dec"1.9999994" + # subx930 + @with_context (Emax=384, Emin=-383, precision=1, rounding=RoundNearestTiesAway) @test dec"11" - dec"2" == dec"9" + # subx932 + @with_context (Emax=384, Emin=-383, precision=2, rounding=RoundNearestTiesAway) @test dec"101" - dec"2" == dec"99" + # subx934 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.1" == dec"98.9" + # subx935 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.01" == dec"8.99" + # subx936 + @with_context (Emax=384, Emin=-383, precision=4, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.01" == dec"98.99" + # subx937 + @with_context (Emax=384, Emin=-383, precision=4, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.01" == dec"8.99" + # subx938 + @with_context (Emax=384, Emin=-383, precision=4, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.006" == dec"8.994" + # subx939 + @with_context (Emax=384, Emin=-383, precision=5, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.001" == dec"98.999" + # subx940 + @with_context (Emax=384, Emin=-383, precision=5, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.001" == dec"8.999" + # subx941 + @with_context (Emax=384, Emin=-383, precision=5, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.0006" == dec"8.9994" + # subx942 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.0001" == dec"98.9999" + # subx943 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.0001" == dec"8.9999" + # subx944 + @with_context (Emax=384, Emin=-383, precision=6, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.00006" == dec"8.99994" + # subx945 + @with_context (Emax=384, Emin=-383, precision=7, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.00001" == dec"98.99999" + # subx946 + @with_context (Emax=384, Emin=-383, precision=7, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.00001" == dec"8.99999" + # subx947 + @with_context (Emax=384, Emin=-383, precision=7, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.000006" == dec"8.999994" + # subx948 + @with_context (Emax=384, Emin=-383, precision=8, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.000001" == dec"98.999999" + # subx949 + @with_context (Emax=384, Emin=-383, precision=8, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.000001" == dec"8.999999" + # subx950 + @with_context (Emax=384, Emin=-383, precision=8, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.0000006" == dec"8.9999994" + # subx951 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"101" - dec"2.0000001" == dec"98.9999999" + # subx952 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.0000001" == dec"8.9999999" + # subx953 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"101" - dec"92.00000006" == dec"8.99999994" + # subx390 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-10" - dec"0" == dec"-0.0000056267" + # subx391 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-6" - dec"0" == dec"-0.056267" + # subx392 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-5" - dec"0" == dec"-0.56267" + # subx393 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-4" - dec"0" == dec"-5.6267" + # subx394 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-3" - dec"0" == dec"-56.267" + # subx395 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-2" - dec"0" == dec"-562.67" + # subx396 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-1" - dec"0" == dec"-5626.7" + # subx397 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-56267e-0" - dec"0" == dec"-56267" + # subx398 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e-10" - dec"0" == dec"-5e-10" + # subx399 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e-7" - dec"0" == dec"-5e-7" + # subx400 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e-6" - dec"0" == dec"-0.000005" + # subx401 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e-5" - dec"0" == dec"-0.00005" + # subx402 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e-4" - dec"0" == dec"-0.0005" + # subx403 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e-1" - dec"0" == dec"-0.5" + # subx404 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e0" - dec"0" == dec"-5" + # subx405 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e1" - dec"0" == dec"-50" + # subx406 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e5" - dec"0" == dec"-500000" + # subx407 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e8" - dec"0" == dec"-500000000" + # subx408 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e9" - dec"0" == dec"-5.00000000e+9" + # subx409 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e10" - dec"0" == dec"-5.00000000e+10" + # subx410 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e11" - dec"0" == dec"-5.00000000e+11" + # subx411 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"-5e100" - dec"0" == dec"-5.00000000e+100" + # subx420 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-10" == dec"0.0000056267" + # subx421 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-6" == dec"0.056267" + # subx422 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-5" == dec"0.56267" + # subx423 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-4" == dec"5.6267" + # subx424 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-3" == dec"56.267" + # subx425 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-2" == dec"562.67" + # subx426 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-1" == dec"5626.7" + # subx427 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-56267e-0" == dec"56267" + # subx428 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e-10" == dec"5e-10" + # subx429 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e-7" == dec"5e-7" + # subx430 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e-6" == dec"0.000005" + # subx431 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e-5" == dec"0.00005" + # subx432 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e-4" == dec"0.0005" + # subx433 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e-1" == dec"0.5" + # subx434 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e0" == dec"5" + # subx435 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e1" == dec"50" + # subx436 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e5" == dec"500000" + # subx437 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e8" == dec"500000000" + # subx438 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e9" == dec"5.00000000e+9" + # subx439 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e10" == dec"5.00000000e+10" + # subx440 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e11" == dec"5.00000000e+11" + # subx441 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"-5e100" == dec"5.00000000e+100" + # subx461 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"1e+12" - dec"1" == dec"999999999999" + # subx462 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"1e+12" - dec"-1.11" == dec"1000000000001.11" + # subx463 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"1.11" - dec"-1e+12" == dec"1000000000001.11" + # subx464 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"-1" - dec"-1e+12" == dec"999999999999" + # subx465 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"7e+12" - dec"1" == dec"6999999999999" + # subx466 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"7e+12" - dec"-1.11" == dec"7000000000001.11" + # subx467 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"1.11" - dec"-7e+12" == dec"7000000000001.11" + # subx468 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"-1" - dec"-7e+12" == dec"6999999999999" + # subx470 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555563" == dec"1.00000000000001" + # subx471 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555562" == dec"1.00000000000001" + # subx472 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555561" == dec"1.00000000000001" + # subx473 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555560" == dec"1.00000000000000" + # subx474 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555559" == dec"1.00000000000000" + # subx475 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555558" == dec"1.00000000000000" + # subx476 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555557" == dec"1.00000000000000" + # subx477 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555556" == dec"1.00000000000000" + # subx478 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555555" == dec"0.999999999999999" + # subx479 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555554" == dec"0.999999999999998" + # subx480 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555553" == dec"0.999999999999997" + # subx481 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555552" == dec"0.999999999999996" + # subx482 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555551" == dec"0.999999999999995" + # subx483 + @with_context (Emax=384, Emin=-383, precision=15, rounding=RoundNearestTiesAway) @test dec"0.444444444444444" - dec"-0.555555555555550" == dec"0.999999999999994" + # subx500 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0" == dec"123456789" + # subx501 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.000000001" == dec"123456789" + # subx502 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.000001" == dec"123456789" + # subx503 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.1" == dec"123456789" + # subx504 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.4" == dec"123456789" + # subx505 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.49" == dec"123456789" + # subx506 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.499999" == dec"123456789" + # subx507 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.499999999" == dec"123456789" + # subx508 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.5" == dec"123456789" + # subx509 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.500000001" == dec"123456788" + # subx510 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.500001" == dec"123456788" + # subx511 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.51" == dec"123456788" + # subx512 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.6" == dec"123456788" + # subx513 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.9" == dec"123456788" + # subx514 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.99999" == dec"123456788" + # subx515 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"0.999999999" == dec"123456788" + # subx516 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"1" == dec"123456788" + # subx517 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"1.000000001" == dec"123456788" + # subx518 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"1.00001" == dec"123456788" + # subx519 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"1.1" == dec"123456788" + # subx520 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0" == dec"123456789" + # subx521 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.000000001" == dec"123456789" + # subx522 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.000001" == dec"123456789" + # subx523 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.1" == dec"123456789" + # subx524 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.4" == dec"123456789" + # subx525 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.49" == dec"123456789" + # subx526 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.499999" == dec"123456789" + # subx527 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.499999999" == dec"123456789" + # subx528 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.5" == dec"123456788" + # subx529 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.500000001" == dec"123456788" + # subx530 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.500001" == dec"123456788" + # subx531 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.51" == dec"123456788" + # subx532 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.6" == dec"123456788" + # subx533 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.9" == dec"123456788" + # subx534 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.99999" == dec"123456788" + # subx535 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"0.999999999" == dec"123456788" + # subx536 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"1" == dec"123456788" + # subx537 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"1.00000001" == dec"123456788" + # subx538 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"1.00001" == dec"123456788" + # subx539 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"1.1" == dec"123456788" + # subx540 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"0.499999999" == dec"123456788" + # subx541 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"0.5" == dec"123456788" + # subx542 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"0.500000001" == dec"123456787" + # subx550 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0" == dec"123456789" + # subx551 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.000000001" == dec"123456788" + # subx552 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.000001" == dec"123456788" + # subx553 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.1" == dec"123456788" + # subx554 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.4" == dec"123456788" + # subx555 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.49" == dec"123456788" + # subx556 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.499999" == dec"123456788" + # subx557 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.499999999" == dec"123456788" + # subx558 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.5" == dec"123456788" + # subx559 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.500000001" == dec"123456788" + # subx560 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.500001" == dec"123456788" + # subx561 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.51" == dec"123456788" + # subx562 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.6" == dec"123456788" + # subx563 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.9" == dec"123456788" + # subx564 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.99999" == dec"123456788" + # subx565 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"0.999999999" == dec"123456788" + # subx566 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"1" == dec"123456788" + # subx567 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"1.00000001" == dec"123456787" + # subx568 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"1.00001" == dec"123456787" + # subx569 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"1.1" == dec"123456787" + # subx600 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"123456789" == dec"-123456789" + # subx601 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.000000001" - dec"123456789" == dec"-123456789" + # subx602 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.000001" - dec"123456789" == dec"-123456789" + # subx603 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.1" - dec"123456789" == dec"-123456789" + # subx604 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.4" - dec"123456789" == dec"-123456789" + # subx605 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.49" - dec"123456789" == dec"-123456789" + # subx606 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.499999" - dec"123456789" == dec"-123456789" + # subx607 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.499999999" - dec"123456789" == dec"-123456789" + # subx608 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.5" - dec"123456789" == dec"-123456789" + # subx609 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.500000001" - dec"123456789" == dec"-123456788" + # subx610 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.500001" - dec"123456789" == dec"-123456788" + # subx611 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.51" - dec"123456789" == dec"-123456788" + # subx612 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.6" - dec"123456789" == dec"-123456788" + # subx613 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.9" - dec"123456789" == dec"-123456788" + # subx614 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.99999" - dec"123456789" == dec"-123456788" + # subx615 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"0.999999999" - dec"123456789" == dec"-123456788" + # subx616 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1" - dec"123456789" == dec"-123456788" + # subx617 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.000000001" - dec"123456789" == dec"-123456788" + # subx618 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.00001" - dec"123456789" == dec"-123456788" + # subx619 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"1.1" - dec"123456789" == dec"-123456788" + # subx620 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0" - dec"123456789" == dec"-123456789" + # subx621 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.000000001" - dec"123456789" == dec"-123456789" + # subx622 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.000001" - dec"123456789" == dec"-123456789" + # subx623 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.1" - dec"123456789" == dec"-123456789" + # subx624 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.4" - dec"123456789" == dec"-123456789" + # subx625 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.49" - dec"123456789" == dec"-123456789" + # subx626 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.499999" - dec"123456789" == dec"-123456789" + # subx627 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.499999999" - dec"123456789" == dec"-123456789" + # subx628 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.5" - dec"123456789" == dec"-123456788" + # subx629 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.500000001" - dec"123456789" == dec"-123456788" + # subx630 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.500001" - dec"123456789" == dec"-123456788" + # subx631 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.51" - dec"123456789" == dec"-123456788" + # subx632 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.6" - dec"123456789" == dec"-123456788" + # subx633 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.9" - dec"123456789" == dec"-123456788" + # subx634 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.99999" - dec"123456789" == dec"-123456788" + # subx635 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.999999999" - dec"123456789" == dec"-123456788" + # subx636 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"1" - dec"123456789" == dec"-123456788" + # subx637 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"1.00000001" - dec"123456789" == dec"-123456788" + # subx638 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"1.00001" - dec"123456789" == dec"-123456788" + # subx639 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"1.1" - dec"123456789" == dec"-123456788" + # subx640 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.499999999" - dec"123456788" == dec"-123456788" + # subx641 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.5" - dec"123456788" == dec"-123456788" + # subx642 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"0.500000001" - dec"123456788" == dec"-123456787" + # subx650 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0" - dec"123456789" == dec"-123456789" + # subx651 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.000000001" - dec"123456789" == dec"-123456788" + # subx652 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.000001" - dec"123456789" == dec"-123456788" + # subx653 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.1" - dec"123456789" == dec"-123456788" + # subx654 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.4" - dec"123456789" == dec"-123456788" + # subx655 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.49" - dec"123456789" == dec"-123456788" + # subx656 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.499999" - dec"123456789" == dec"-123456788" + # subx657 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.499999999" - dec"123456789" == dec"-123456788" + # subx658 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.5" - dec"123456789" == dec"-123456788" + # subx659 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.500000001" - dec"123456789" == dec"-123456788" + # subx660 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.500001" - dec"123456789" == dec"-123456788" + # subx661 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.51" - dec"123456789" == dec"-123456788" + # subx662 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.6" - dec"123456789" == dec"-123456788" + # subx663 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.9" - dec"123456789" == dec"-123456788" + # subx664 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.99999" - dec"123456789" == dec"-123456788" + # subx665 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"0.999999999" - dec"123456789" == dec"-123456788" + # subx666 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"1" - dec"123456789" == dec"-123456788" + # subx667 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"1.00000001" - dec"123456789" == dec"-123456787" + # subx668 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"1.00001" - dec"123456789" == dec"-123456787" + # subx669 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"1.1" - dec"123456789" == dec"-123456787" + # subx670 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"123456788.1" == dec"0.9" + # subx671 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"123456788.9" == dec"0.1" + # subx672 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"123456789.1" == dec"-0.1" + # subx673 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"123456789.5" == dec"-0.5" + # subx674 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearestTiesAway) @test dec"123456789" - dec"123456789.9" == dec"-0.9" + # subx680 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"123456788.1" == dec"0.9" + # subx681 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"123456788.9" == dec"0.1" + # subx682 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"123456789.1" == dec"-0.1" + # subx683 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"123456789.5" == dec"-0.5" + # subx684 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456789" - dec"123456789.9" == dec"-0.9" + # subx685 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"123456787.1" == dec"0.9" + # subx686 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"123456787.9" == dec"0.1" + # subx687 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"123456788.1" == dec"-0.1" + # subx688 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"123456788.5" == dec"-0.5" + # subx689 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundNearest) @test dec"123456788" - dec"123456788.9" == dec"-0.9" + # subx690 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"123456788.1" == dec"0.9" + # subx691 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"123456788.9" == dec"0.1" + # subx692 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"123456789.1" == dec"-0.1" + # subx693 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"123456789.5" == dec"-0.5" + # subx694 + @with_context (Emax=384, Emin=-383, precision=9, rounding=RoundToZero) @test dec"123456789" - dec"123456789.9" == dec"-0.9" + # subx700 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"12345678900000" - dec"-9999999999999" == dec"2.23e+13" + # subx701 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"9999999999999" - dec"-12345678900000" == dec"2.23e+13" + # subx702 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"12e+3" - dec"-3456" == dec"1.55e+4" + # subx703 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"12e+3" - dec"-3446" == dec"1.54e+4" + # subx704 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"12e+3" - dec"-3454" == dec"1.55e+4" + # subx705 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"12e+3" - dec"-3444" == dec"1.54e+4" + # subx706 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"3456" - dec"-12e+3" == dec"1.55e+4" + # subx707 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"3446" - dec"-12e+3" == dec"1.54e+4" + # subx708 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"3454" - dec"-12e+3" == dec"1.55e+4" + # subx709 + @with_context (Emax=384, Emin=-383, precision=3, rounding=RoundNearestTiesAway) @test dec"3444" - dec"-12e+3" == dec"1.54e+4" + # subx710 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundToZero) @test_throws OverflowError dec"1e+999999999" - dec"-9e+999999999" + # subx711 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundToZero) @test_throws OverflowError dec"9e+999999999" - dec"-1e+999999999" + # subx712 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"1e+999999999" - dec"-9e+999999999" + # subx713 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"9e+999999999" - dec"-1e+999999999" + # subx714 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test dec"-1.1e-999999999" - dec"-1e-999999999" == dec"-1e-1000000000" + # subx715 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test dec"1e-999999999" - dec"+1.1e-999999999" == dec"-1e-1000000000" + # subx716 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"-1e+999999999" - dec"+9e+999999999" + # subx717 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"-9e+999999999" - dec"+1e+999999999" + # subx718 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test dec"+1.1e-999999999" - dec"+1e-999999999" == dec"1e-1000000000" + # subx719 + @with_context (Emax=999999999, Emin=-999999999, precision=9, rounding=RoundNearestTiesAway) @test dec"-1e-999999999" - dec"-1.1e-999999999" == dec"1e-1000000000" + # subx720 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"1" - dec"9.999e+999999999" + # subx721 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"1" - dec"-9.999e+999999999" + # subx722 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"9.999e+999999999" - dec"1" + # subx723 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"-9.999e+999999999" - dec"1" + # subx724 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"1" - dec"9.999e+999999999" + # subx725 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"1" - dec"-9.999e+999999999" + # subx726 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"9.999e+999999999" - dec"1" + # subx727 + @with_context (Emax=999999999, Emin=-999999999, precision=3, rounding=RoundNearestTiesAway) @test_throws OverflowError dec"-9.999e+999999999" - dec"1" + # sub731 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"12345678000" - dec"0" == dec"1.23456780e+10" + # sub732 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"12345678000" == dec"-1.23456780e+10" + # sub733 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"1234567800" - dec"0" == dec"1.23456780e+9" + # sub734 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567800" == dec"-1.23456780e+9" + # sub735 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"1234567890" - dec"0" == dec"1.23456789e+9" + # sub736 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567890" == dec"-1.23456789e+9" + # sub737 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"1234567891" - dec"0" == dec"1.23456789e+9" + # sub738 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567891" == dec"-1.23456789e+9" + # sub739 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"12345678901" - dec"0" == dec"1.23456789e+10" + # sub740 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"12345678901" == dec"-1.23456789e+10" + # sub741 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"1234567896" - dec"0" == dec"1.23456790e+9" + # sub742 + @with_context (Emax=999, Emin=-999, precision=9, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567896" == dec"-1.23456790e+9" + # sub751 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"12345678000" - dec"0" == dec"12345678000" + # sub752 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"0" - dec"12345678000" == dec"-12345678000" + # sub753 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"1234567800" - dec"0" == dec"1234567800" + # sub754 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567800" == dec"-1234567800" + # sub755 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"1234567890" - dec"0" == dec"1234567890" + # sub756 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567890" == dec"-1234567890" + # sub757 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"1234567891" - dec"0" == dec"1234567891" + # sub758 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567891" == dec"-1234567891" + # sub759 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"12345678901" - dec"0" == dec"12345678901" + # sub760 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"0" - dec"12345678901" == dec"-12345678901" + # sub761 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"1234567896" - dec"0" == dec"1234567896" + # sub762 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"0" - dec"1234567896" == dec"-1234567896" + # subx901 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.e-3" - dec"1.002" == dec"-1.000" + # subx902 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.0e-3" - dec"1.002" == dec"-1.0000" + # subx903 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.00e-3" - dec"1.0020" == dec"-1.00000" + # subx904 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.000e-3" - dec"1.00200" == dec"-1.000000" + # subx905 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.0000e-3" - dec"1.002000" == dec"-1.0000000" + # subx906 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.00000e-3" - dec"1.0020000" == dec"-1.00000000" + # subx907 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.000000e-3" - dec"1.00200000" == dec"-1.000000000" + # subx908 + @with_context (Emax=999, Emin=-999, precision=15, rounding=RoundNearestTiesAway) @test dec"2.0000000e-3" - dec"1.002000000" == dec"-1.0000000000" + # subx1010 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"1.00e-999" == dec"-1.00e-999" + # subx1011 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.1e-999" == dec"-1e-1000" + # subx1012 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.10e-999" == dec"-1.0e-1000" + # subx1013 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.100e-999" == dec"-1.0e-1000" + # subx1014 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.01e-999" == dec"-1e-1001" + # subx1015 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.999e-999" == dec"-1.00e-999" + # subx1016 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.099e-999" == dec"-1.0e-1000" + # subx1017 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.009e-999" == dec"-1e-1001" + # subx1018 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.001e-999" == dec"-0e-1001" + # subx1019 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.0009e-999" == dec"-0e-1001" + # subx1020 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"0.0001e-999" == dec"-0e-1001" + # subx1030 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-1.00e-999" == dec"1.00e-999" + # subx1031 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.1e-999" == dec"1e-1000" + # subx1032 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.10e-999" == dec"1.0e-1000" + # subx1033 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.100e-999" == dec"1.0e-1000" + # subx1034 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.01e-999" == dec"1e-1001" + # subx1035 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.999e-999" == dec"1.00e-999" + # subx1036 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.099e-999" == dec"1.0e-1000" + # subx1037 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.009e-999" == dec"1e-1001" + # subx1038 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.001e-999" == dec"0e-1001" + # subx1039 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.0009e-999" == dec"0e-1001" + # subx1040 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0" - dec"-0.0001e-999" == dec"0e-1001" + # subx1050 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"1.00e-999" - dec"0.1e-999" == dec"9.0e-1000" + # subx1051 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.1e-999" - dec"0.1e-999" == dec"0e-1000" + # subx1052 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.10e-999" - dec"0.1e-999" == dec"0e-1001" + # subx1053 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.100e-999" - dec"0.1e-999" == dec"0e-1001" + # subx1054 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.01e-999" - dec"0.1e-999" == dec"-9e-1001" + # subx1055 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.999e-999" - dec"0.1e-999" == dec"9.0e-1000" + # subx1056 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.099e-999" - dec"0.1e-999" == dec"-0e-1001" + # subx1057 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.009e-999" - dec"0.1e-999" == dec"-9e-1001" + # subx1058 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.001e-999" - dec"0.1e-999" == dec"-1.0e-1000" + # subx1059 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.0009e-999" - dec"0.1e-999" == dec"-1.0e-1000" + # subx1060 + @with_context (Emax=999, Emin=-999, precision=3, rounding=RoundNearestTiesAway) @test dec"0.0001e-999" - dec"0.1e-999" == dec"-1.0e-1000" + # subx1101 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"0" - dec"1.52444e-80" == dec"-1.524e-80" + # subx1102 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"0" - dec"1.52445e-80" == dec"-1.524e-80" + # subx1103 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"0" - dec"1.52446e-80" == dec"-1.524e-80" + # subx1104 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.52444e-80" - dec"0" == dec"1.524e-80" + # subx1105 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.52445e-80" - dec"0" == dec"1.524e-80" + # subx1106 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.52446e-80" - dec"0" == dec"1.524e-80" + # subx1111 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.2345671e-80" == dec"0e-83" + # subx1112 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.2345618e-80" == dec"0e-83" + # subx1113 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.2345178e-80" == dec"0e-83" + # subx1114 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.2341678e-80" == dec"0e-83" + # subx1115 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.2315678e-80" == dec"3e-83" + # subx1116 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.2145678e-80" == dec"2.0e-82" + # subx1117 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"1.1345678e-80" == dec"1.00e-81" + # subx1118 + @with_context (Emax=79, Emin=-79, precision=5, rounding=RoundNearestTiesAway) @test dec"1.2345678e-80" - dec"0.2345678e-80" == dec"1.000e-80" + # subx1125 + @with_context (Emax=6144, Emin=-6143, precision=34, rounding=RoundNearestTiesAway) @test dec"130e-2" - dec"120e-2" == dec"0.10" + # subx1126 + @with_context (Emax=6144, Emin=-6143, precision=34, rounding=RoundNearestTiesAway) @test dec"130e-2" - dec"12e-1" == dec"0.10" + # subx1127 + @with_context (Emax=6144, Emin=-6143, precision=34, rounding=RoundNearestTiesAway) @test dec"130e-2" - dec"1e0" == dec"0.30" + # subx1128 + @with_context (Emax=6144, Emin=-6143, precision=34, rounding=RoundNearestTiesAway) @test dec"1e2" - dec"1e4" == dec"-9.9e+3" +end diff --git a/test/runtests.jl b/test/runtests.jl index 4ceaef3..6a1e3a3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -32,5 +32,6 @@ include("dectests/test_min.jl") include("dectests/test_minus.jl") include("dectests/test_multiply.jl") include("dectests/test_plus.jl") +include("dectests/test_subtract.jl") end