1 ------------------------------------------------------------------------ 2 -- dqDivide.decTest -- decQuad division -- 3 -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. -- 4 ------------------------------------------------------------------------ 5 -- Please see the document "General Decimal Arithmetic Testcases" -- 6 -- at http://www2.hursley.ibm.com/decimal for the description of -- 7 -- these testcases. -- 8 -- -- 9 -- These testcases are experimental ('beta' versions), and they -- 10 -- may contain errors. They are offered on an as-is basis. In -- 11 -- particular, achieving the same results as the tests here is not -- 12 -- a guarantee that an implementation complies with any Standard -- 13 -- or specification. The tests are not exhaustive. -- 14 -- -- 15 -- Please send comments, suggestions, and corrections to the author: -- 16 -- Mike Cowlishaw, IBM Fellow -- 17 -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- 18 -- mfc (a] uk.ibm.com -- 19 ------------------------------------------------------------------------ 20 version: 2.59 21 22 extended: 1 23 clamp: 1 24 precision: 34 25 maxExponent: 6144 26 minExponent: -6143 27 rounding: half_even 28 29 -- sanity checks 30 dqdiv001 divide 1 1 -> 1 31 dqdiv002 divide 2 1 -> 2 32 dqdiv003 divide 1 2 -> 0.5 33 dqdiv004 divide 2 2 -> 1 34 dqdiv005 divide 0 1 -> 0 35 dqdiv006 divide 0 2 -> 0 36 dqdiv007 divide 1 3 -> 0.3333333333333333333333333333333333 Inexact Rounded 37 dqdiv008 divide 2 3 -> 0.6666666666666666666666666666666667 Inexact Rounded 38 dqdiv009 divide 3 3 -> 1 39 40 dqdiv010 divide 2.4 1 -> 2.4 41 dqdiv011 divide 2.4 -1 -> -2.4 42 dqdiv012 divide -2.4 1 -> -2.4 43 dqdiv013 divide -2.4 -1 -> 2.4 44 dqdiv014 divide 2.40 1 -> 2.40 45 dqdiv015 divide 2.400 1 -> 2.400 46 dqdiv016 divide 2.4 2 -> 1.2 47 dqdiv017 divide 2.400 2 -> 1.200 48 dqdiv018 divide 2. 2 -> 1 49 dqdiv019 divide 20 20 -> 1 50 51 dqdiv020 divide 187 187 -> 1 52 dqdiv021 divide 5 2 -> 2.5 53 dqdiv022 divide 50 20 -> 2.5 54 dqdiv023 divide 500 200 -> 2.5 55 dqdiv024 divide 50.0 20.0 -> 2.5 56 dqdiv025 divide 5.00 2.00 -> 2.5 57 dqdiv026 divide 5 2.0 -> 2.5 58 dqdiv027 divide 5 2.000 -> 2.5 59 dqdiv028 divide 5 0.20 -> 25 60 dqdiv029 divide 5 0.200 -> 25 61 dqdiv030 divide 10 1 -> 10 62 dqdiv031 divide 100 1 -> 100 63 dqdiv032 divide 1000 1 -> 1000 64 dqdiv033 divide 1000 100 -> 10 65 66 dqdiv035 divide 1 2 -> 0.5 67 dqdiv036 divide 1 4 -> 0.25 68 dqdiv037 divide 1 8 -> 0.125 69 dqdiv038 divide 1 16 -> 0.0625 70 dqdiv039 divide 1 32 -> 0.03125 71 dqdiv040 divide 1 64 -> 0.015625 72 dqdiv041 divide 1 -2 -> -0.5 73 dqdiv042 divide 1 -4 -> -0.25 74 dqdiv043 divide 1 -8 -> -0.125 75 dqdiv044 divide 1 -16 -> -0.0625 76 dqdiv045 divide 1 -32 -> -0.03125 77 dqdiv046 divide 1 -64 -> -0.015625 78 dqdiv047 divide -1 2 -> -0.5 79 dqdiv048 divide -1 4 -> -0.25 80 dqdiv049 divide -1 8 -> -0.125 81 dqdiv050 divide -1 16 -> -0.0625 82 dqdiv051 divide -1 32 -> -0.03125 83 dqdiv052 divide -1 64 -> -0.015625 84 dqdiv053 divide -1 -2 -> 0.5 85 dqdiv054 divide -1 -4 -> 0.25 86 dqdiv055 divide -1 -8 -> 0.125 87 dqdiv056 divide -1 -16 -> 0.0625 88 dqdiv057 divide -1 -32 -> 0.03125 89 dqdiv058 divide -1 -64 -> 0.015625 90 91 -- bcdTime 92 dqdiv060 divide 1 7 -> 0.1428571428571428571428571428571429 Inexact Rounded 93 dqdiv061 divide 1.2345678 1.9876543 -> 0.6211179680490717123193907511985359 Inexact Rounded 94 95 -- 1234567890123456 96 dqdiv067 divide 9999999999999999999999999999999999 1 -> 9999999999999999999999999999999999 97 dqdiv068 divide 999999999999999999999999999999999 1 -> 999999999999999999999999999999999 98 dqdiv069 divide 99999999999999999999999999999999 1 -> 99999999999999999999999999999999 99 dqdiv070 divide 99999999999999999 1 -> 99999999999999999 100 dqdiv071 divide 9999999999999999 1 -> 9999999999999999 101 dqdiv072 divide 999999999999999 1 -> 999999999999999 102 dqdiv073 divide 99999999999999 1 -> 99999999999999 103 dqdiv074 divide 9999999999999 1 -> 9999999999999 104 dqdiv075 divide 999999999999 1 -> 999999999999 105 dqdiv076 divide 99999999999 1 -> 99999999999 106 dqdiv077 divide 9999999999 1 -> 9999999999 107 dqdiv078 divide 999999999 1 -> 999999999 108 dqdiv079 divide 99999999 1 -> 99999999 109 dqdiv080 divide 9999999 1 -> 9999999 110 dqdiv081 divide 999999 1 -> 999999 111 dqdiv082 divide 99999 1 -> 99999 112 dqdiv083 divide 9999 1 -> 9999 113 dqdiv084 divide 999 1 -> 999 114 dqdiv085 divide 99 1 -> 99 115 dqdiv086 divide 9 1 -> 9 116 117 dqdiv090 divide 0. 1 -> 0 118 dqdiv091 divide .0 1 -> 0.0 119 dqdiv092 divide 0.00 1 -> 0.00 120 dqdiv093 divide 0.00E+9 1 -> 0E+7 121 dqdiv094 divide 0.0000E-50 1 -> 0E-54 122 123 dqdiv095 divide 1 1E-8 -> 1E+8 124 dqdiv096 divide 1 1E-9 -> 1E+9 125 dqdiv097 divide 1 1E-10 -> 1E+10 126 dqdiv098 divide 1 1E-11 -> 1E+11 127 dqdiv099 divide 1 1E-12 -> 1E+12 128 129 dqdiv100 divide 1 1 -> 1 130 dqdiv101 divide 1 2 -> 0.5 131 dqdiv102 divide 1 3 -> 0.3333333333333333333333333333333333 Inexact Rounded 132 dqdiv103 divide 1 4 -> 0.25 133 dqdiv104 divide 1 5 -> 0.2 134 dqdiv105 divide 1 6 -> 0.1666666666666666666666666666666667 Inexact Rounded 135 dqdiv106 divide 1 7 -> 0.1428571428571428571428571428571429 Inexact Rounded 136 dqdiv107 divide 1 8 -> 0.125 137 dqdiv108 divide 1 9 -> 0.1111111111111111111111111111111111 Inexact Rounded 138 dqdiv109 divide 1 10 -> 0.1 139 dqdiv110 divide 1 1 -> 1 140 dqdiv111 divide 2 1 -> 2 141 dqdiv112 divide 3 1 -> 3 142 dqdiv113 divide 4 1 -> 4 143 dqdiv114 divide 5 1 -> 5 144 dqdiv115 divide 6 1 -> 6 145 dqdiv116 divide 7 1 -> 7 146 dqdiv117 divide 8 1 -> 8 147 dqdiv118 divide 9 1 -> 9 148 dqdiv119 divide 10 1 -> 10 149 150 dqdiv120 divide 3E+1 0.001 -> 3E+4 151 dqdiv121 divide 2.200 2 -> 1.100 152 153 dqdiv130 divide 12345 4.999 -> 2469.493898779755951190238047609522 Inexact Rounded 154 dqdiv131 divide 12345 4.99 -> 2473.947895791583166332665330661323 Inexact Rounded 155 dqdiv132 divide 12345 4.9 -> 2519.387755102040816326530612244898 Inexact Rounded 156 dqdiv133 divide 12345 5 -> 2469 157 dqdiv134 divide 12345 5.1 -> 2420.588235294117647058823529411765 Inexact Rounded 158 dqdiv135 divide 12345 5.01 -> 2464.071856287425149700598802395210 Inexact Rounded 159 dqdiv136 divide 12345 5.001 -> 2468.506298740251949610077984403119 Inexact Rounded 160 161 -- test possibly imprecise results 162 dqdiv220 divide 391 597 -> 0.6549413735343383584589614740368509 Inexact Rounded 163 dqdiv221 divide 391 -597 -> -0.6549413735343383584589614740368509 Inexact Rounded 164 dqdiv222 divide -391 597 -> -0.6549413735343383584589614740368509 Inexact Rounded 165 dqdiv223 divide -391 -597 -> 0.6549413735343383584589614740368509 Inexact Rounded 166 167 -- test some cases that are close to exponent overflow 168 dqdiv270 divide 1 1e6144 -> 1E-6144 Subnormal 169 dqdiv271 divide 1 0.9e6144 -> 1.11111111111111111111111111111111E-6144 Rounded Inexact Subnormal Underflow 170 dqdiv272 divide 1 0.99e6144 -> 1.01010101010101010101010101010101E-6144 Rounded Inexact Subnormal Underflow 171 dqdiv273 divide 1 0.9999999999999999e6144 -> 1.00000000000000010000000000000001E-6144 Rounded Inexact Subnormal Underflow 172 dqdiv274 divide 9e6144 1 -> 9.000000000000000000000000000000000E+6144 Clamped 173 dqdiv275 divide 9.9e6144 1 -> 9.900000000000000000000000000000000E+6144 Clamped 174 dqdiv276 divide 9.99e6144 1 -> 9.990000000000000000000000000000000E+6144 Clamped 175 dqdiv277 divide 9.999999999999999e6144 1 -> 9.999999999999999000000000000000000E+6144 Clamped 176 177 dqdiv278 divide 1 0.9999999999999999999999999999999999e6144 -> 1.00000000000000000000000000000000E-6144 Rounded Inexact Subnormal Underflow 178 dqdiv279 divide 9.999999999999999999999999999999999e6144 1 -> 9.999999999999999999999999999999999E+6144 179 180 -- Divide into 0 tests 181 dqdiv301 divide 0 7 -> 0 182 dqdiv302 divide 0 7E-5 -> 0E+5 183 dqdiv303 divide 0 7E-1 -> 0E+1 184 dqdiv304 divide 0 7E+1 -> 0.0 185 dqdiv305 divide 0 7E+5 -> 0.00000 186 dqdiv306 divide 0 7E+6 -> 0.000000 187 dqdiv307 divide 0 7E+7 -> 0E-7 188 dqdiv308 divide 0 70E-5 -> 0E+5 189 dqdiv309 divide 0 70E-1 -> 0E+1 190 dqdiv310 divide 0 70E+0 -> 0 191 dqdiv311 divide 0 70E+1 -> 0.0 192 dqdiv312 divide 0 70E+5 -> 0.00000 193 dqdiv313 divide 0 70E+6 -> 0.000000 194 dqdiv314 divide 0 70E+7 -> 0E-7 195 dqdiv315 divide 0 700E-5 -> 0E+5 196 dqdiv316 divide 0 700E-1 -> 0E+1 197 dqdiv317 divide 0 700E+0 -> 0 198 dqdiv318 divide 0 700E+1 -> 0.0 199 dqdiv319 divide 0 700E+5 -> 0.00000 200 dqdiv320 divide 0 700E+6 -> 0.000000 201 dqdiv321 divide 0 700E+7 -> 0E-7 202 dqdiv322 divide 0 700E+77 -> 0E-77 203 204 dqdiv331 divide 0E-3 7E-5 -> 0E+2 205 dqdiv332 divide 0E-3 7E-1 -> 0.00 206 dqdiv333 divide 0E-3 7E+1 -> 0.0000 207 dqdiv334 divide 0E-3 7E+5 -> 0E-8 208 dqdiv335 divide 0E-1 7E-5 -> 0E+4 209 dqdiv336 divide 0E-1 7E-1 -> 0 210 dqdiv337 divide 0E-1 7E+1 -> 0.00 211 dqdiv338 divide 0E-1 7E+5 -> 0.000000 212 dqdiv339 divide 0E+1 7E-5 -> 0E+6 213 dqdiv340 divide 0E+1 7E-1 -> 0E+2 214 dqdiv341 divide 0E+1 7E+1 -> 0 215 dqdiv342 divide 0E+1 7E+5 -> 0.0000 216 dqdiv343 divide 0E+3 7E-5 -> 0E+8 217 dqdiv344 divide 0E+3 7E-1 -> 0E+4 218 dqdiv345 divide 0E+3 7E+1 -> 0E+2 219 dqdiv346 divide 0E+3 7E+5 -> 0.00 220 221 -- These were 'input rounding' 222 dqdiv441 divide 12345678000 1 -> 12345678000 223 dqdiv442 divide 1 12345678000 -> 8.100000664200054464404466081166219E-11 Inexact Rounded 224 dqdiv443 divide 1234567800 1 -> 1234567800 225 dqdiv444 divide 1 1234567800 -> 8.100000664200054464404466081166219E-10 Inexact Rounded 226 dqdiv445 divide 1234567890 1 -> 1234567890 227 dqdiv446 divide 1 1234567890 -> 8.100000073710000670761006103925156E-10 Inexact Rounded 228 dqdiv447 divide 1234567891 1 -> 1234567891 229 dqdiv448 divide 1 1234567891 -> 8.100000067149000556665214614754629E-10 Inexact Rounded 230 dqdiv449 divide 12345678901 1 -> 12345678901 231 dqdiv450 divide 1 12345678901 -> 8.100000073053900658873130042376760E-11 Inexact Rounded 232 dqdiv451 divide 1234567896 1 -> 1234567896 233 dqdiv452 divide 1 1234567896 -> 8.100000034344000145618560617422697E-10 Inexact Rounded 234 235 -- high-lows 236 dqdiv453 divide 1e+1 1 -> 1E+1 237 dqdiv454 divide 1e+1 1.0 -> 1E+1 238 dqdiv455 divide 1e+1 1.00 -> 1E+1 239 dqdiv456 divide 1e+2 2 -> 5E+1 240 dqdiv457 divide 1e+2 2.0 -> 5E+1 241 dqdiv458 divide 1e+2 2.00 -> 5E+1 242 243 -- some from IEEE discussions 244 dqdiv460 divide 3e0 2e0 -> 1.5 245 dqdiv461 divide 30e-1 2e0 -> 1.5 246 dqdiv462 divide 300e-2 2e0 -> 1.50 247 dqdiv464 divide 3000e-3 2e0 -> 1.500 248 dqdiv465 divide 3e0 20e-1 -> 1.5 249 dqdiv466 divide 30e-1 20e-1 -> 1.5 250 dqdiv467 divide 300e-2 20e-1 -> 1.5 251 dqdiv468 divide 3000e-3 20e-1 -> 1.50 252 dqdiv469 divide 3e0 200e-2 -> 1.5 253 dqdiv470 divide 30e-1 200e-2 -> 1.5 254 dqdiv471 divide 300e-2 200e-2 -> 1.5 255 dqdiv472 divide 3000e-3 200e-2 -> 1.5 256 dqdiv473 divide 3e0 2000e-3 -> 1.5 257 dqdiv474 divide 30e-1 2000e-3 -> 1.5 258 dqdiv475 divide 300e-2 2000e-3 -> 1.5 259 dqdiv476 divide 3000e-3 2000e-3 -> 1.5 260 261 -- some reciprocals 262 dqdiv480 divide 1 1.0E+33 -> 1E-33 263 dqdiv481 divide 1 10E+33 -> 1E-34 264 dqdiv482 divide 1 1.0E-33 -> 1E+33 265 dqdiv483 divide 1 10E-33 -> 1E+32 266 267 -- RMS discussion table 268 dqdiv484 divide 0e5 1e3 -> 0E+2 269 dqdiv485 divide 0e5 2e3 -> 0E+2 270 dqdiv486 divide 0e5 10e2 -> 0E+3 271 dqdiv487 divide 0e5 20e2 -> 0E+3 272 dqdiv488 divide 0e5 100e1 -> 0E+4 273 dqdiv489 divide 0e5 200e1 -> 0E+4 274 275 dqdiv491 divide 1e5 1e3 -> 1E+2 276 dqdiv492 divide 1e5 2e3 -> 5E+1 277 dqdiv493 divide 1e5 10e2 -> 1E+2 278 dqdiv494 divide 1e5 20e2 -> 5E+1 279 dqdiv495 divide 1e5 100e1 -> 1E+2 280 dqdiv496 divide 1e5 200e1 -> 5E+1 281 282 -- tryzeros cases 283 rounding: half_up 284 dqdiv497 divide 0E+6108 1000E-33 -> 0E+6111 Clamped 285 dqdiv498 divide 0E-6170 1000E+33 -> 0E-6176 Clamped 286 287 rounding: half_up 288 289 -- focus on trailing zeros issues 290 dqdiv500 divide 1 9.9 -> 0.1010101010101010101010101010101010 Inexact Rounded 291 dqdiv501 divide 1 9.09 -> 0.1100110011001100110011001100110011 Inexact Rounded 292 dqdiv502 divide 1 9.009 -> 0.1110001110001110001110001110001110 Inexact Rounded 293 294 dqdiv511 divide 1 2 -> 0.5 295 dqdiv512 divide 1.0 2 -> 0.5 296 dqdiv513 divide 1.00 2 -> 0.50 297 dqdiv514 divide 1.000 2 -> 0.500 298 dqdiv515 divide 1.0000 2 -> 0.5000 299 dqdiv516 divide 1.00000 2 -> 0.50000 300 dqdiv517 divide 1.000000 2 -> 0.500000 301 dqdiv518 divide 1.0000000 2 -> 0.5000000 302 dqdiv519 divide 1.00 2.00 -> 0.5 303 304 dqdiv521 divide 2 1 -> 2 305 dqdiv522 divide 2 1.0 -> 2 306 dqdiv523 divide 2 1.00 -> 2 307 dqdiv524 divide 2 1.000 -> 2 308 dqdiv525 divide 2 1.0000 -> 2 309 dqdiv526 divide 2 1.00000 -> 2 310 dqdiv527 divide 2 1.000000 -> 2 311 dqdiv528 divide 2 1.0000000 -> 2 312 dqdiv529 divide 2.00 1.00 -> 2 313 314 dqdiv530 divide 2.40 2 -> 1.20 315 dqdiv531 divide 2.40 4 -> 0.60 316 dqdiv532 divide 2.40 10 -> 0.24 317 dqdiv533 divide 2.40 2.0 -> 1.2 318 dqdiv534 divide 2.40 4.0 -> 0.6 319 dqdiv535 divide 2.40 10.0 -> 0.24 320 dqdiv536 divide 2.40 2.00 -> 1.2 321 dqdiv537 divide 2.40 4.00 -> 0.6 322 dqdiv538 divide 2.40 10.00 -> 0.24 323 dqdiv539 divide 0.9 0.1 -> 9 324 dqdiv540 divide 0.9 0.01 -> 9E+1 325 dqdiv541 divide 0.9 0.001 -> 9E+2 326 dqdiv542 divide 5 2 -> 2.5 327 dqdiv543 divide 5 2.0 -> 2.5 328 dqdiv544 divide 5 2.00 -> 2.5 329 dqdiv545 divide 5 20 -> 0.25 330 dqdiv546 divide 5 20.0 -> 0.25 331 dqdiv547 divide 2.400 2 -> 1.200 332 dqdiv548 divide 2.400 2.0 -> 1.20 333 dqdiv549 divide 2.400 2.400 -> 1 334 335 dqdiv550 divide 240 1 -> 240 336 dqdiv551 divide 240 10 -> 24 337 dqdiv552 divide 240 100 -> 2.4 338 dqdiv553 divide 240 1000 -> 0.24 339 dqdiv554 divide 2400 1 -> 2400 340 dqdiv555 divide 2400 10 -> 240 341 dqdiv556 divide 2400 100 -> 24 342 dqdiv557 divide 2400 1000 -> 2.4 343 344 -- +ve exponent 345 dqdiv600 divide 2.4E+9 2 -> 1.2E+9 346 dqdiv601 divide 2.40E+9 2 -> 1.20E+9 347 dqdiv602 divide 2.400E+9 2 -> 1.200E+9 348 dqdiv603 divide 2.4000E+9 2 -> 1.2000E+9 349 dqdiv604 divide 24E+8 2 -> 1.2E+9 350 dqdiv605 divide 240E+7 2 -> 1.20E+9 351 dqdiv606 divide 2400E+6 2 -> 1.200E+9 352 dqdiv607 divide 24000E+5 2 -> 1.2000E+9 353 354 -- more zeros, etc. 355 dqdiv731 divide 5.00 1E-3 -> 5.00E+3 356 dqdiv732 divide 00.00 0.000 -> NaN Division_undefined 357 dqdiv733 divide 00.00 0E-3 -> NaN Division_undefined 358 dqdiv734 divide 0 -0 -> NaN Division_undefined 359 dqdiv735 divide -0 0 -> NaN Division_undefined 360 dqdiv736 divide -0 -0 -> NaN Division_undefined 361 362 dqdiv741 divide 0 -1 -> -0 363 dqdiv742 divide -0 -1 -> 0 364 dqdiv743 divide 0 1 -> 0 365 dqdiv744 divide -0 1 -> -0 366 dqdiv745 divide -1 0 -> -Infinity Division_by_zero 367 dqdiv746 divide -1 -0 -> Infinity Division_by_zero 368 dqdiv747 divide 1 0 -> Infinity Division_by_zero 369 dqdiv748 divide 1 -0 -> -Infinity Division_by_zero 370 371 dqdiv751 divide 0.0 -1 -> -0.0 372 dqdiv752 divide -0.0 -1 -> 0.0 373 dqdiv753 divide 0.0 1 -> 0.0 374 dqdiv754 divide -0.0 1 -> -0.0 375 dqdiv755 divide -1.0 0 -> -Infinity Division_by_zero 376 dqdiv756 divide -1.0 -0 -> Infinity Division_by_zero 377 dqdiv757 divide 1.0 0 -> Infinity Division_by_zero 378 dqdiv758 divide 1.0 -0 -> -Infinity Division_by_zero 379 380 dqdiv761 divide 0 -1.0 -> -0E+1 381 dqdiv762 divide -0 -1.0 -> 0E+1 382 dqdiv763 divide 0 1.0 -> 0E+1 383 dqdiv764 divide -0 1.0 -> -0E+1 384 dqdiv765 divide -1 0.0 -> -Infinity Division_by_zero 385 dqdiv766 divide -1 -0.0 -> Infinity Division_by_zero 386 dqdiv767 divide 1 0.0 -> Infinity Division_by_zero 387 dqdiv768 divide 1 -0.0 -> -Infinity Division_by_zero 388 389 dqdiv771 divide 0.0 -1.0 -> -0 390 dqdiv772 divide -0.0 -1.0 -> 0 391 dqdiv773 divide 0.0 1.0 -> 0 392 dqdiv774 divide -0.0 1.0 -> -0 393 dqdiv775 divide -1.0 0.0 -> -Infinity Division_by_zero 394 dqdiv776 divide -1.0 -0.0 -> Infinity Division_by_zero 395 dqdiv777 divide 1.0 0.0 -> Infinity Division_by_zero 396 dqdiv778 divide 1.0 -0.0 -> -Infinity Division_by_zero 397 398 -- Specials 399 dqdiv780 divide Inf -Inf -> NaN Invalid_operation 400 dqdiv781 divide Inf -1000 -> -Infinity 401 dqdiv782 divide Inf -1 -> -Infinity 402 dqdiv783 divide Inf -0 -> -Infinity 403 dqdiv784 divide Inf 0 -> Infinity 404 dqdiv785 divide Inf 1 -> Infinity 405 dqdiv786 divide Inf 1000 -> Infinity 406 dqdiv787 divide Inf Inf -> NaN Invalid_operation 407 dqdiv788 divide -1000 Inf -> -0E-6176 Clamped 408 dqdiv789 divide -Inf Inf -> NaN Invalid_operation 409 dqdiv790 divide -1 Inf -> -0E-6176 Clamped 410 dqdiv791 divide -0 Inf -> -0E-6176 Clamped 411 dqdiv792 divide 0 Inf -> 0E-6176 Clamped 412 dqdiv793 divide 1 Inf -> 0E-6176 Clamped 413 dqdiv794 divide 1000 Inf -> 0E-6176 Clamped 414 dqdiv795 divide Inf Inf -> NaN Invalid_operation 415 416 dqdiv800 divide -Inf -Inf -> NaN Invalid_operation 417 dqdiv801 divide -Inf -1000 -> Infinity 418 dqdiv802 divide -Inf -1 -> Infinity 419 dqdiv803 divide -Inf -0 -> Infinity 420 dqdiv804 divide -Inf 0 -> -Infinity 421 dqdiv805 divide -Inf 1 -> -Infinity 422 dqdiv806 divide -Inf 1000 -> -Infinity 423 dqdiv807 divide -Inf Inf -> NaN Invalid_operation 424 dqdiv808 divide -1000 Inf -> -0E-6176 Clamped 425 dqdiv809 divide -Inf -Inf -> NaN Invalid_operation 426 dqdiv810 divide -1 -Inf -> 0E-6176 Clamped 427 dqdiv811 divide -0 -Inf -> 0E-6176 Clamped 428 dqdiv812 divide 0 -Inf -> -0E-6176 Clamped 429 dqdiv813 divide 1 -Inf -> -0E-6176 Clamped 430 dqdiv814 divide 1000 -Inf -> -0E-6176 Clamped 431 dqdiv815 divide Inf -Inf -> NaN Invalid_operation 432 433 dqdiv821 divide NaN -Inf -> NaN 434 dqdiv822 divide NaN -1000 -> NaN 435 dqdiv823 divide NaN -1 -> NaN 436 dqdiv824 divide NaN -0 -> NaN 437 dqdiv825 divide NaN 0 -> NaN 438 dqdiv826 divide NaN 1 -> NaN 439 dqdiv827 divide NaN 1000 -> NaN 440 dqdiv828 divide NaN Inf -> NaN 441 dqdiv829 divide NaN NaN -> NaN 442 dqdiv830 divide -Inf NaN -> NaN 443 dqdiv831 divide -1000 NaN -> NaN 444 dqdiv832 divide -1 NaN -> NaN 445 dqdiv833 divide -0 NaN -> NaN 446 dqdiv834 divide 0 NaN -> NaN 447 dqdiv835 divide 1 NaN -> NaN 448 dqdiv836 divide 1000 NaN -> NaN 449 dqdiv837 divide Inf NaN -> NaN 450 451 dqdiv841 divide sNaN -Inf -> NaN Invalid_operation 452 dqdiv842 divide sNaN -1000 -> NaN Invalid_operation 453 dqdiv843 divide sNaN -1 -> NaN Invalid_operation 454 dqdiv844 divide sNaN -0 -> NaN Invalid_operation 455 dqdiv845 divide sNaN 0 -> NaN Invalid_operation 456 dqdiv846 divide sNaN 1 -> NaN Invalid_operation 457 dqdiv847 divide sNaN 1000 -> NaN Invalid_operation 458 dqdiv848 divide sNaN NaN -> NaN Invalid_operation 459 dqdiv849 divide sNaN sNaN -> NaN Invalid_operation 460 dqdiv850 divide NaN sNaN -> NaN Invalid_operation 461 dqdiv851 divide -Inf sNaN -> NaN Invalid_operation 462 dqdiv852 divide -1000 sNaN -> NaN Invalid_operation 463 dqdiv853 divide -1 sNaN -> NaN Invalid_operation 464 dqdiv854 divide -0 sNaN -> NaN Invalid_operation 465 dqdiv855 divide 0 sNaN -> NaN Invalid_operation 466 dqdiv856 divide 1 sNaN -> NaN Invalid_operation 467 dqdiv857 divide 1000 sNaN -> NaN Invalid_operation 468 dqdiv858 divide Inf sNaN -> NaN Invalid_operation 469 dqdiv859 divide NaN sNaN -> NaN Invalid_operation 470 471 -- propagating NaNs 472 dqdiv861 divide NaN9 -Inf -> NaN9 473 dqdiv862 divide NaN8 1000 -> NaN8 474 dqdiv863 divide NaN7 Inf -> NaN7 475 dqdiv864 divide NaN6 NaN5 -> NaN6 476 dqdiv865 divide -Inf NaN4 -> NaN4 477 dqdiv866 divide -1000 NaN3 -> NaN3 478 dqdiv867 divide Inf NaN2 -> NaN2 479 480 dqdiv871 divide sNaN99 -Inf -> NaN99 Invalid_operation 481 dqdiv872 divide sNaN98 -1 -> NaN98 Invalid_operation 482 dqdiv873 divide sNaN97 NaN -> NaN97 Invalid_operation 483 dqdiv874 divide sNaN96 sNaN94 -> NaN96 Invalid_operation 484 dqdiv875 divide NaN95 sNaN93 -> NaN93 Invalid_operation 485 dqdiv876 divide -Inf sNaN92 -> NaN92 Invalid_operation 486 dqdiv877 divide 0 sNaN91 -> NaN91 Invalid_operation 487 dqdiv878 divide Inf sNaN90 -> NaN90 Invalid_operation 488 dqdiv879 divide NaN sNaN89 -> NaN89 Invalid_operation 489 490 dqdiv881 divide -NaN9 -Inf -> -NaN9 491 dqdiv882 divide -NaN8 1000 -> -NaN8 492 dqdiv883 divide -NaN7 Inf -> -NaN7 493 dqdiv884 divide -NaN6 -NaN5 -> -NaN6 494 dqdiv885 divide -Inf -NaN4 -> -NaN4 495 dqdiv886 divide -1000 -NaN3 -> -NaN3 496 dqdiv887 divide Inf -NaN2 -> -NaN2 497 498 dqdiv891 divide -sNaN99 -Inf -> -NaN99 Invalid_operation 499 dqdiv892 divide -sNaN98 -1 -> -NaN98 Invalid_operation 500 dqdiv893 divide -sNaN97 NaN -> -NaN97 Invalid_operation 501 dqdiv894 divide -sNaN96 -sNaN94 -> -NaN96 Invalid_operation 502 dqdiv895 divide -NaN95 -sNaN93 -> -NaN93 Invalid_operation 503 dqdiv896 divide -Inf -sNaN92 -> -NaN92 Invalid_operation 504 dqdiv897 divide 0 -sNaN91 -> -NaN91 Invalid_operation 505 dqdiv898 divide Inf -sNaN90 -> -NaN90 Invalid_operation 506 dqdiv899 divide -NaN -sNaN89 -> -NaN89 Invalid_operation 507 508 -- Various flavours of divide by 0 509 dqdiv901 divide 0 0 -> NaN Division_undefined 510 dqdiv902 divide 0.0E5 0 -> NaN Division_undefined 511 dqdiv903 divide 0.000 0 -> NaN Division_undefined 512 dqdiv904 divide 0.0001 0 -> Infinity Division_by_zero 513 dqdiv905 divide 0.01 0 -> Infinity Division_by_zero 514 dqdiv906 divide 0.1 0 -> Infinity Division_by_zero 515 dqdiv907 divide 1 0 -> Infinity Division_by_zero 516 dqdiv908 divide 1 0.0 -> Infinity Division_by_zero 517 dqdiv909 divide 10 0.0 -> Infinity Division_by_zero 518 dqdiv910 divide 1E+100 0.0 -> Infinity Division_by_zero 519 dqdiv911 divide 1E+100 0 -> Infinity Division_by_zero 520 521 dqdiv921 divide -0.0001 0 -> -Infinity Division_by_zero 522 dqdiv922 divide -0.01 0 -> -Infinity Division_by_zero 523 dqdiv923 divide -0.1 0 -> -Infinity Division_by_zero 524 dqdiv924 divide -1 0 -> -Infinity Division_by_zero 525 dqdiv925 divide -1 0.0 -> -Infinity Division_by_zero 526 dqdiv926 divide -10 0.0 -> -Infinity Division_by_zero 527 dqdiv927 divide -1E+100 0.0 -> -Infinity Division_by_zero 528 dqdiv928 divide -1E+100 0 -> -Infinity Division_by_zero 529 530 dqdiv931 divide 0.0001 -0 -> -Infinity Division_by_zero 531 dqdiv932 divide 0.01 -0 -> -Infinity Division_by_zero 532 dqdiv933 divide 0.1 -0 -> -Infinity Division_by_zero 533 dqdiv934 divide 1 -0 -> -Infinity Division_by_zero 534 dqdiv935 divide 1 -0.0 -> -Infinity Division_by_zero 535 dqdiv936 divide 10 -0.0 -> -Infinity Division_by_zero 536 dqdiv937 divide 1E+100 -0.0 -> -Infinity Division_by_zero 537 dqdiv938 divide 1E+100 -0 -> -Infinity Division_by_zero 538 539 dqdiv941 divide -0.0001 -0 -> Infinity Division_by_zero 540 dqdiv942 divide -0.01 -0 -> Infinity Division_by_zero 541 dqdiv943 divide -0.1 -0 -> Infinity Division_by_zero 542 dqdiv944 divide -1 -0 -> Infinity Division_by_zero 543 dqdiv945 divide -1 -0.0 -> Infinity Division_by_zero 544 dqdiv946 divide -10 -0.0 -> Infinity Division_by_zero 545 dqdiv947 divide -1E+100 -0.0 -> Infinity Division_by_zero 546 dqdiv948 divide -1E+100 -0 -> Infinity Division_by_zero 547 548 -- Examples from SQL proposal (Krishna Kulkarni) 549 dqdiv1021 divide 1E0 1E0 -> 1 550 dqdiv1022 divide 1E0 2E0 -> 0.5 551 dqdiv1023 divide 1E0 3E0 -> 0.3333333333333333333333333333333333 Inexact Rounded 552 dqdiv1024 divide 100E-2 1000E-3 -> 1 553 dqdiv1025 divide 24E-1 2E0 -> 1.2 554 dqdiv1026 divide 2400E-3 2E0 -> 1.200 555 dqdiv1027 divide 5E0 2E0 -> 2.5 556 dqdiv1028 divide 5E0 20E-1 -> 2.5 557 dqdiv1029 divide 5E0 2000E-3 -> 2.5 558 dqdiv1030 divide 5E0 2E-1 -> 25 559 dqdiv1031 divide 5E0 20E-2 -> 25 560 dqdiv1032 divide 480E-2 3E0 -> 1.60 561 dqdiv1033 divide 47E-1 2E0 -> 2.35 562 563 -- ECMAScript bad examples 564 rounding: half_down 565 dqdiv1040 divide 5 9 -> 0.5555555555555555555555555555555556 Inexact Rounded 566 rounding: half_even 567 dqdiv1041 divide 6 11 -> 0.5454545454545454545454545454545455 Inexact Rounded 568 569 -- Gyuris example 570 dqdiv1050 divide 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 0.9999999999999999999999999999991254 Inexact Rounded 571 572 -- overflow and underflow tests .. note subnormal results 573 -- signs 574 dqdiv1751 divide 1e+4277 1e-3311 -> Infinity Overflow Inexact Rounded 575 dqdiv1752 divide 1e+4277 -1e-3311 -> -Infinity Overflow Inexact Rounded 576 dqdiv1753 divide -1e+4277 1e-3311 -> -Infinity Overflow Inexact Rounded 577 dqdiv1754 divide -1e+4277 -1e-3311 -> Infinity Overflow Inexact Rounded 578 dqdiv1755 divide 1e-4277 1e+3311 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 579 dqdiv1756 divide 1e-4277 -1e+3311 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped 580 dqdiv1757 divide -1e-4277 1e+3311 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped 581 dqdiv1758 divide -1e-4277 -1e+3311 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 582 583 -- 'subnormal' boundary (all hard underflow or overflow in base arithemtic) 584 dqdiv1760 divide 1e-6069 1e+101 -> 1E-6170 Subnormal 585 dqdiv1761 divide 1e-6069 1e+102 -> 1E-6171 Subnormal 586 dqdiv1762 divide 1e-6069 1e+103 -> 1E-6172 Subnormal 587 dqdiv1763 divide 1e-6069 1e+104 -> 1E-6173 Subnormal 588 dqdiv1764 divide 1e-6069 1e+105 -> 1E-6174 Subnormal 589 dqdiv1765 divide 1e-6069 1e+106 -> 1E-6175 Subnormal 590 dqdiv1766 divide 1e-6069 1e+107 -> 1E-6176 Subnormal 591 dqdiv1767 divide 1e-6069 1e+108 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 592 dqdiv1768 divide 1e-6069 1e+109 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 593 dqdiv1769 divide 1e-6069 1e+110 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 594 -- [no equivalent of 'subnormal' for overflow] 595 dqdiv1770 divide 1e+40 1e-6101 -> 1.000000000000000000000000000000E+6141 Clamped 596 dqdiv1771 divide 1e+40 1e-6102 -> 1.0000000000000000000000000000000E+6142 Clamped 597 dqdiv1772 divide 1e+40 1e-6103 -> 1.00000000000000000000000000000000E+6143 Clamped 598 dqdiv1773 divide 1e+40 1e-6104 -> 1.000000000000000000000000000000000E+6144 Clamped 599 dqdiv1774 divide 1e+40 1e-6105 -> Infinity Overflow Inexact Rounded 600 dqdiv1775 divide 1e+40 1e-6106 -> Infinity Overflow Inexact Rounded 601 dqdiv1776 divide 1e+40 1e-6107 -> Infinity Overflow Inexact Rounded 602 dqdiv1777 divide 1e+40 1e-6108 -> Infinity Overflow Inexact Rounded 603 dqdiv1778 divide 1e+40 1e-6109 -> Infinity Overflow Inexact Rounded 604 dqdiv1779 divide 1e+40 1e-6110 -> Infinity Overflow Inexact Rounded 605 606 dqdiv1801 divide 1.0000E-6172 1 -> 1.0000E-6172 Subnormal 607 dqdiv1802 divide 1.000E-6172 1e+1 -> 1.000E-6173 Subnormal 608 dqdiv1803 divide 1.00E-6172 1e+2 -> 1.00E-6174 Subnormal 609 dqdiv1804 divide 1.0E-6172 1e+3 -> 1.0E-6175 Subnormal 610 dqdiv1805 divide 1.0E-6172 1e+4 -> 1E-6176 Subnormal Rounded 611 dqdiv1806 divide 1.3E-6172 1e+4 -> 1E-6176 Underflow Subnormal Inexact Rounded 612 dqdiv1807 divide 1.5E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 613 dqdiv1808 divide 1.7E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 614 dqdiv1809 divide 2.3E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 615 dqdiv1810 divide 2.5E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 616 dqdiv1811 divide 2.7E-6172 1e+4 -> 3E-6176 Underflow Subnormal Inexact Rounded 617 dqdiv1812 divide 1.49E-6172 1e+4 -> 1E-6176 Underflow Subnormal Inexact Rounded 618 dqdiv1813 divide 1.50E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 619 dqdiv1814 divide 1.51E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 620 dqdiv1815 divide 2.49E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 621 dqdiv1816 divide 2.50E-6172 1e+4 -> 2E-6176 Underflow Subnormal Inexact Rounded 622 dqdiv1817 divide 2.51E-6172 1e+4 -> 3E-6176 Underflow Subnormal Inexact Rounded 623 624 dqdiv1818 divide 1E-6172 1e+4 -> 1E-6176 Subnormal 625 dqdiv1819 divide 3E-6172 1e+5 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 626 dqdiv1820 divide 5E-6172 1e+5 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 627 dqdiv1821 divide 7E-6172 1e+5 -> 1E-6176 Underflow Subnormal Inexact Rounded 628 dqdiv1822 divide 9E-6172 1e+5 -> 1E-6176 Underflow Subnormal Inexact Rounded 629 dqdiv1823 divide 9.9E-6172 1e+5 -> 1E-6176 Underflow Subnormal Inexact Rounded 630 631 dqdiv1824 divide 1E-6172 -1e+4 -> -1E-6176 Subnormal 632 dqdiv1825 divide 3E-6172 -1e+5 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped 633 dqdiv1826 divide -5E-6172 1e+5 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped 634 dqdiv1827 divide 7E-6172 -1e+5 -> -1E-6176 Underflow Subnormal Inexact Rounded 635 dqdiv1828 divide -9E-6172 1e+5 -> -1E-6176 Underflow Subnormal Inexact Rounded 636 dqdiv1829 divide 9.9E-6172 -1e+5 -> -1E-6176 Underflow Subnormal Inexact Rounded 637 dqdiv1830 divide 3.0E-6172 -1e+5 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped 638 639 dqdiv1831 divide 1.0E-5977 1e+200 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped 640 dqdiv1832 divide 1.0E-5977 1e+199 -> 1E-6176 Subnormal Rounded 641 dqdiv1833 divide 1.0E-5977 1e+198 -> 1.0E-6175 Subnormal 642 dqdiv1834 divide 2.0E-5977 2e+198 -> 1.0E-6175 Subnormal 643 dqdiv1835 divide 4.0E-5977 4e+198 -> 1.0E-6175 Subnormal 644 dqdiv1836 divide 10.0E-5977 10e+198 -> 1.0E-6175 Subnormal 645 dqdiv1837 divide 30.0E-5977 30e+198 -> 1.0E-6175 Subnormal 646 dqdiv1838 divide 40.0E-5982 40e+166 -> 1.0E-6148 Subnormal 647 dqdiv1839 divide 40.0E-5982 40e+165 -> 1.0E-6147 Subnormal 648 dqdiv1840 divide 40.0E-5982 40e+164 -> 1.0E-6146 Subnormal 649 650 -- randoms 651 rounding: half_even 652 dqdiv2010 divide -5231195652931651968034356117118850 -7243718664422548573203260970.34995 -> 722169.9095831284624736051460550680 Inexact Rounded 653 dqdiv2011 divide -89584669773927.82711237350022515352 -42077943728529635884.21142627532985 -> 0.000002129017291146471565928125887527266 Inexact Rounded 654 dqdiv2012 divide -2.828201693360723203806974891946180E-232 812596541221823960386384403089240.9 -> -3.480450075640521320040055759125120E-265 Inexact Rounded 655 dqdiv2013 divide -6442775372761069267502937539408720 24904085056.69185465145182606089196 -> -258703556388226463687701.4884719589 Inexact Rounded 656 dqdiv2014 divide 5.535520011272625629610079879714705 -44343664650.57203052003068113531208 -> -1.248322630728089308975940533493562E-10 Inexact Rounded 657 dqdiv2015 divide 65919273712517865964325.99419625010 -314733354141381737378622515.7789054 -> -0.0002094448295521490616379784758911632 Inexact Rounded 658 dqdiv2016 divide -7.779172568193197107115275140431129E+759 -140453015639.3988987652895178782143 -> 5.538629792161641534962774244238115E+748 Inexact Rounded 659 dqdiv2017 divide 644314832597569.0181226067518178797 -115024585257425.1635759521565201075 -> -5.601540150356479257367687450922795 Inexact Rounded 660 dqdiv2018 divide 6.898640941579611450676592553286870E-47 -11272429881407851485163914999.25943 -> -6.119923578285338689371137648319280E-75 Inexact Rounded 661 dqdiv2019 divide -3591344544888727133.30819750163254 5329395.423792795661446561090331037 -> -673874662941.1968525589460533725290 Inexact Rounded 662 dqdiv2020 divide -7.682356781384631313156462724425838E+747 -6.60375855512219057281922141809940E+703 -> 1.163330960279556016678379128875149E+44 Inexact Rounded 663 dqdiv2021 divide -4511495596596941820863224.274679699 3365395017.263329795449661616090724 -> -1340554548115304.904166888018346299 Inexact Rounded 664 dqdiv2022 divide 5.211164127840931517263639608151299 164.5566381356276567012533847006453 -> 0.03166790587655228864478260157156510 Inexact Rounded 665 dqdiv2023 divide -49891.2243893458830384077684620383 -47179.9312961860747554053371171530 -> 1.057467084386767291602189656430268 Inexact Rounded 666 dqdiv2024 divide 15065477.47214268488077415462413353 4366211.120892953261309529740552596 -> 3.450469309661227984244545513441359 Inexact Rounded 667 dqdiv2025 divide 1.575670269440761846109602429612644E+370 653199649324740300.006185482643439 -> 2.412233795700359170904588548041481E+352 Inexact Rounded 668 dqdiv2026 divide -2112422311733448924573432192.620145 -80067206.03590693153848215848613406 -> 26383115089417660175.20102646756574 Inexact Rounded 669 dqdiv2027 divide -67096536051279809.32218611548721839 -869685412881941081664251990181.1049 -> 7.715035236584805921278566365231168E-14 Inexact Rounded 670 dqdiv2028 divide -58612908548962047.21866913425488972 -978449597531.3873665583475633831644 -> 59903.86085991703091236507859837023 Inexact Rounded 671 dqdiv2029 divide -133032412010942.1476864138213319796 -7.882059293498670705446528648201359E-428 -> 1.687787506504433064549515681693715E+441 Inexact Rounded 672 dqdiv2030 divide 1.83746698338966029492299716360513E+977 -9.897926608979649951672839879128603E+154 -> -1.856416051542212552042390218062458E+822 Inexact Rounded 673 dqdiv2031 divide -113742475841399236307128962.1507063 8298602.203049834732657567965262989 -> -13706221006665137826.16557393919929 Inexact Rounded 674 dqdiv2032 divide 196.4787574650754152995941808331862 929.6553388472318094427422117172394 -> 0.2113458066176526651006917922814018 Inexact Rounded 675 dqdiv2033 divide 71931221465.43867996282803628130350 3838685934206426257090718.402248853 -> 1.873850132527423413607199513324021E-14 Inexact Rounded 676 dqdiv2034 divide 488.4282502289651653783596246312885 -80.68940956806634280078706577953188 -> -6.053189047280693318844801899473272 Inexact Rounded 677 dqdiv2035 divide 9.001764344963921754981762913247394E-162 -8.585540973667205753734967645386919E-729 -> -1.048479574271827326396012573232934E+567 Inexact Rounded 678 dqdiv2036 divide -7.404133959409894743706402857145471E-828 -51.38159929460289711134684843086265 -> 1.441008855516029461032061785219773E-829 Inexact Rounded 679 dqdiv2037 divide 2.967520235574419794048994436040717E-613 -6252513855.91394894949879262731889 -> -4.746123405656409127572998751885338E-623 Inexact Rounded 680 dqdiv2038 divide -18826852654824040505.83920366765051 -6336924877942437992590557460147340 -> 2.970976146546494669807886278519194E-15 Inexact Rounded 681 dqdiv2039 divide -8.101406784809197604949584001735949E+561 4.823300306948942821076681658771635E+361 -> -1.679639721610839204738445747238987E+200 Inexact Rounded 682 dqdiv2040 divide -6.11981977773094052331062585191723E+295 1.507610253755339328302779005586534E+238 -> -4.059285058911577244044418416044763E+57 Inexact Rounded 683 dqdiv2041 divide 6.472638850046815880599220534274055E-596 -4.475233712083047516933911786159972 -> -1.446324207062261745520496475778879E-596 Inexact Rounded 684 dqdiv2042 divide -84438593330.71277839631144509397112 -586684596204401664208947.4054879633 -> 1.439250218550041228759983937772504E-13 Inexact Rounded 685 dqdiv2043 divide 9.354533233294022616695815656704369E-24 405.500390626135304252144163591746 -> 2.306911028827774549740571229736198E-26 Inexact Rounded 686 dqdiv2044 divide 985606423350210.7374876650149957881 -36811563697.41925681866694859828794 -> -26774.36990864119445335813354717711 Inexact Rounded 687 dqdiv2045 divide -8.187280774177715706278002247766311E-123 -38784124393.91212870828430001300068 -> 2.110987653356139147357240727794365E-133 Inexact Rounded 688 dqdiv2046 divide -4.612203126350070903459245798371657E+912 7.971562182727956290901984736800519E+64 -> -5.785820922708683237098826662769748E+847 Inexact Rounded 689 dqdiv2047 divide 4.661015909421485298247928967977089E+888 -6.360911253323922338737311563845581E+388 -> -7.327591478321365980156654539638836E+499 Inexact Rounded 690 dqdiv2048 divide 9156078172903.257500003260710833030 7.189796653262147139071634237964074E-90 -> 1.273482215766000994365201545096026E+102 Inexact Rounded 691 dqdiv2049 divide -1.710722303327476586373477781276586E-311 -3167561628260156837329323.729380695 -> 5.400754599578613984875752958645655E-336 Inexact Rounded 692 dqdiv2050 divide -4.647935210881806238321616345413021E-878 209388.5431867744648177308460639582 -> -2.219765771394593733140494297388140E-883 Inexact Rounded 693 dqdiv2051 divide 5958.694728395760992719084781582700 4.541510156564315632536353171846096E-746 -> 1.312051393253638664947852693005480E+749 Inexact Rounded 694 dqdiv2052 divide -7.935732544649702175256699886872093E-489 -7.433329073664793138998765647467971E+360 -> 1.067587949626076917672271619664656E-849 Inexact Rounded 695 dqdiv2053 divide -2746650864601157.863589959939901350 7.016684945507647528907184694359598E+548 -> -3.914456593009309529351254950429932E-534 Inexact Rounded 696 dqdiv2054 divide 3605149408631197365447953.994569178 -75614025825649082.78264864428237833 -> -47678315.88472693507060063188020532 Inexact Rounded 697 dqdiv2055 divide 788194320921798404906375214.196349 -6.222718148433247384932573401976337E-418 -> -1.266639918634671803982222244977287E+444 Inexact Rounded 698 dqdiv2056 divide 5620722730534752.758208943447603211 6.843552841168538319123000917657759E-139 -> 8.213164800485434666629970443739554E+153 Inexact Rounded 699 dqdiv2057 divide 7304534676713703938102.403949019402 -576169.3685010935108153023803590835 -> -12677756014201995.31969237144394772 Inexact Rounded 700 dqdiv2058 divide 8067918762.134621639254916786945547 -8.774771480055536009105596163864758E+954 -> -9.194448858836332156766764605125245E-946 Inexact Rounded 701 dqdiv2059 divide 8.702093454123046507578256899537563E-324 -5.875399733016018404580201176576293E-401 -> -1.481106622452052581470443526957335E+77 Inexact Rounded 702 dqdiv2060 divide -41426.01662518451861386352415092356 90.00146621684478300510769802013464 -> -460.2815750287318692732067709176200 Inexact Rounded 703 704 -- random divide tests with result near 1 705 dqdiv4001 divide 2003100352770753969878925664524900 2003100352770753969878925664497824 -> 1.000000000000000000000000000013517 Inexact Rounded 706 dqdiv4002 divide 4817785793916490652579552318371645 4817785793916490652579552318362097 -> 1.000000000000000000000000000001982 Inexact Rounded 707 dqdiv4003 divide 8299187410920067325648068439560282 8299187410920067325648068439591159 -> 0.9999999999999999999999999999962795 Inexact Rounded 708 dqdiv4004 divide 5641088455897407044544461785365899 5641088455897407044544461785389965 -> 0.9999999999999999999999999999957338 Inexact Rounded 709 dqdiv4005 divide 5752274694706545359326361313490424 5752274694706545359326361313502723 -> 0.9999999999999999999999999999978619 Inexact Rounded 710 dqdiv4006 divide 6762079477373670594829319346099665 6762079477373670594829319346132579 -> 0.9999999999999999999999999999951326 Inexact Rounded 711 dqdiv4007 divide 7286425153691890341633023222602916 7286425153691890341633023222606556 -> 0.9999999999999999999999999999995004 Inexact Rounded 712 dqdiv4008 divide 9481233991901305727648306421946655 9481233991901305727648306421919124 -> 1.000000000000000000000000000002904 Inexact Rounded 713 dqdiv4009 divide 4282053941893951742029444065614311 4282053941893951742029444065583077 -> 1.000000000000000000000000000007294 Inexact Rounded 714 dqdiv4010 divide 626888225441250639741781850338695 626888225441250639741781850327299 -> 1.000000000000000000000000000018179 Inexact Rounded 715 dqdiv4011 divide 3860973649222028009456598604468547 3860973649222028009456598604476849 -> 0.9999999999999999999999999999978498 Inexact Rounded 716 dqdiv4012 divide 4753157080127468127908060607821839 4753157080127468127908060607788379 -> 1.000000000000000000000000000007040 Inexact Rounded 717 dqdiv4013 divide 552448546203754062805706277880419 552448546203754062805706277881903 -> 0.9999999999999999999999999999973138 Inexact Rounded 718 dqdiv4014 divide 8405954527952158455323713728917395 8405954527952158455323713728933866 -> 0.9999999999999999999999999999980406 Inexact Rounded 719 dqdiv4015 divide 7554096502235321142555802238016116 7554096502235321142555802238026546 -> 0.9999999999999999999999999999986193 Inexact Rounded 720 dqdiv4016 divide 4053257674127518606871054934746782 4053257674127518606871054934767355 -> 0.9999999999999999999999999999949243 Inexact Rounded 721 dqdiv4017 divide 7112419420755090454716888844011582 7112419420755090454716888844038105 -> 0.9999999999999999999999999999962709 Inexact Rounded 722 dqdiv4018 divide 3132302137520072728164549730911846 3132302137520072728164549730908416 -> 1.000000000000000000000000000001095 Inexact Rounded 723 dqdiv4019 divide 4788374045841416355706715048161013 4788374045841416355706715048190077 -> 0.9999999999999999999999999999939303 Inexact Rounded 724 dqdiv4020 divide 9466021636047630218238075099510597 9466021636047630218238075099484053 -> 1.000000000000000000000000000002804 Inexact Rounded 725 dqdiv4021 divide 912742745646765625597399692138650 912742745646765625597399692139042 -> 0.9999999999999999999999999999995705 Inexact Rounded 726 dqdiv4022 divide 9508402742933643208806264897188504 9508402742933643208806264897195973 -> 0.9999999999999999999999999999992145 Inexact Rounded 727 dqdiv4023 divide 1186956795727233704962361914360895 1186956795727233704962361914329577 -> 1.000000000000000000000000000026385 Inexact Rounded 728 dqdiv4024 divide 5972210268839014812696916170967938 5972210268839014812696916170954974 -> 1.000000000000000000000000000002171 Inexact Rounded 729 dqdiv4025 divide 2303801625521619930894460139793140 2303801625521619930894460139799643 -> 0.9999999999999999999999999999971773 Inexact Rounded 730 dqdiv4026 divide 6022231560002898264777393473966595 6022231560002898264777393473947198 -> 1.000000000000000000000000000003221 Inexact Rounded 731 dqdiv4027 divide 8426148335801396199969346032210893 8426148335801396199969346032203179 -> 1.000000000000000000000000000000915 Inexact Rounded 732 dqdiv4028 divide 8812278947028784637382847098411749 8812278947028784637382847098385317 -> 1.000000000000000000000000000002999 Inexact Rounded 733 dqdiv4029 divide 8145282002348367383264197170116146 8145282002348367383264197170083988 -> 1.000000000000000000000000000003948 Inexact Rounded 734 dqdiv4030 divide 6821577571876840153123510107387026 6821577571876840153123510107418008 -> 0.9999999999999999999999999999954582 Inexact Rounded 735 dqdiv4031 divide 9018555319518966970480565482023720 9018555319518966970480565482013346 -> 1.000000000000000000000000000001150 Inexact Rounded 736 dqdiv4032 divide 4602155712998228449640717252788864 4602155712998228449640717252818502 -> 0.9999999999999999999999999999935600 Inexact Rounded 737 dqdiv4033 divide 6675607481522785614506828292264472 6675607481522785614506828292277100 -> 0.9999999999999999999999999999981083 Inexact Rounded 738 dqdiv4034 divide 4015881516871833897766945836264472 4015881516871833897766945836262645 -> 1.000000000000000000000000000000455 Inexact Rounded 739 dqdiv4035 divide 1415580205933411837595459716910365 1415580205933411837595459716880139 -> 1.000000000000000000000000000021352 Inexact Rounded 740 dqdiv4036 divide 9432968297069542816752035276361552 9432968297069542816752035276353054 -> 1.000000000000000000000000000000901 Inexact Rounded 741 dqdiv4037 divide 4799319591303848500532766682140658 4799319591303848500532766682172655 -> 0.9999999999999999999999999999933330 Inexact Rounded 742 dqdiv4038 divide 316854270732839529790584284987472 316854270732839529790584285004832 -> 0.9999999999999999999999999999452114 Inexact Rounded 743 dqdiv4039 divide 3598981300592490427826027975697415 3598981300592490427826027975686712 -> 1.000000000000000000000000000002974 Inexact Rounded 744 dqdiv4040 divide 1664315435694461371155800682196520 1664315435694461371155800682195617 -> 1.000000000000000000000000000000543 Inexact Rounded 745 dqdiv4041 divide 1680872316531128890102855316510581 1680872316531128890102855316495545 -> 1.000000000000000000000000000008945 Inexact Rounded 746 dqdiv4042 divide 9881274879566405475755499281644730 9881274879566405475755499281615743 -> 1.000000000000000000000000000002934 Inexact Rounded 747 dqdiv4043 divide 4737225957717466960447204232279216 4737225957717466960447204232277452 -> 1.000000000000000000000000000000372 Inexact Rounded 748 dqdiv4044 divide 2482097379414867061213319346418288 2482097379414867061213319346387936 -> 1.000000000000000000000000000012228 Inexact Rounded 749 dqdiv4045 divide 7406977595233762723576434122161868 7406977595233762723576434122189042 -> 0.9999999999999999999999999999963313 Inexact Rounded 750 dqdiv4046 divide 228782057757566047086593281773577 228782057757566047086593281769727 -> 1.000000000000000000000000000016828 Inexact Rounded 751 dqdiv4047 divide 2956594270240579648823270540367653 2956594270240579648823270540368556 -> 0.9999999999999999999999999999996946 Inexact Rounded 752 dqdiv4048 divide 6326964098897620620534136767634340 6326964098897620620534136767619339 -> 1.000000000000000000000000000002371 Inexact Rounded 753 dqdiv4049 divide 414586440456590215247002678327800 414586440456590215247002678316922 -> 1.000000000000000000000000000026238 Inexact Rounded 754 dqdiv4050 divide 7364552208570039386220505636779125 7364552208570039386220505636803548 -> 0.9999999999999999999999999999966837 Inexact Rounded 755 dqdiv4051 divide 5626266749902369710022824950590056 5626266749902369710022824950591008 -> 0.9999999999999999999999999999998308 Inexact Rounded 756 dqdiv4052 divide 4863278293916197454987481343460484 4863278293916197454987481343442522 -> 1.000000000000000000000000000003693 Inexact Rounded 757 dqdiv4053 divide 1170713582030637359713249796835483 1170713582030637359713249796823345 -> 1.000000000000000000000000000010368 Inexact Rounded 758 dqdiv4054 divide 9838062494725965667776326556052931 9838062494725965667776326556061002 -> 0.9999999999999999999999999999991796 Inexact Rounded 759 dqdiv4055 divide 4071388731298861093005687091498922 4071388731298861093005687091498278 -> 1.000000000000000000000000000000158 Inexact Rounded 760 dqdiv4056 divide 8753155722324706795855038590272526 8753155722324706795855038590276656 -> 0.9999999999999999999999999999995282 Inexact Rounded 761 dqdiv4057 divide 4399941911533273418844742658240485 4399941911533273418844742658219891 -> 1.000000000000000000000000000004681 Inexact Rounded 762 dqdiv4058 divide 4127884159949503677776430620050269 4127884159949503677776430620026091 -> 1.000000000000000000000000000005857 Inexact Rounded 763 dqdiv4059 divide 5536160822360800067042528317438808 5536160822360800067042528317450687 -> 0.9999999999999999999999999999978543 Inexact Rounded 764 dqdiv4060 divide 3973234998468664936671088237710246 3973234998468664936671088237741886 -> 0.9999999999999999999999999999920367 Inexact Rounded 765 dqdiv4061 divide 9824855935638263593410444142327358 9824855935638263593410444142328576 -> 0.9999999999999999999999999999998760 Inexact Rounded 766 dqdiv4062 divide 5917078517340218131867327300814867 5917078517340218131867327300788701 -> 1.000000000000000000000000000004422 Inexact Rounded 767 dqdiv4063 divide 4354236601830544882286139612521362 4354236601830544882286139612543223 -> 0.9999999999999999999999999999949794 Inexact Rounded 768 dqdiv4064 divide 8058474772375259017342110013891294 8058474772375259017342110013906792 -> 0.9999999999999999999999999999980768 Inexact Rounded 769 dqdiv4065 divide 5519604020981748170517093746166328 5519604020981748170517093746181763 -> 0.9999999999999999999999999999972036 Inexact Rounded 770 dqdiv4066 divide 1502130966879805458831323782443139 1502130966879805458831323782412213 -> 1.000000000000000000000000000020588 Inexact Rounded 771 dqdiv4067 divide 562795633719481212915159787980270 562795633719481212915159788007066 -> 0.9999999999999999999999999999523877 Inexact Rounded 772 dqdiv4068 divide 6584743324494664273941281557268878 6584743324494664273941281557258945 -> 1.000000000000000000000000000001508 Inexact Rounded 773 dqdiv4069 divide 3632000327285743997976431109416500 3632000327285743997976431109408107 -> 1.000000000000000000000000000002311 Inexact Rounded 774 dqdiv4070 divide 1145827237315430089388953838561450 1145827237315430089388953838527332 -> 1.000000000000000000000000000029776 Inexact Rounded 775 dqdiv4071 divide 8874431010357691869725372317350380 8874431010357691869725372317316472 -> 1.000000000000000000000000000003821 Inexact Rounded 776 dqdiv4072 divide 992948718902804648119753141202196 992948718902804648119753141235222 -> 0.9999999999999999999999999999667395 Inexact Rounded 777 dqdiv4073 divide 2522735183374218505142417265439989 2522735183374218505142417265453779 -> 0.9999999999999999999999999999945337 Inexact Rounded 778 dqdiv4074 divide 2668419161912936508006872303501052 2668419161912936508006872303471036 -> 1.000000000000000000000000000011249 Inexact Rounded 779 dqdiv4075 divide 3036169085665186712590941111775092 3036169085665186712590941111808846 -> 0.9999999999999999999999999999888827 Inexact Rounded 780 dqdiv4076 divide 9441634604917231638508898934006147 9441634604917231638508898934000288 -> 1.000000000000000000000000000000621 Inexact Rounded 781 dqdiv4077 divide 2677301353164377091111458811839190 2677301353164377091111458811867722 -> 0.9999999999999999999999999999893430 Inexact Rounded 782 dqdiv4078 divide 6844979203112066166583765857171426 6844979203112066166583765857189682 -> 0.9999999999999999999999999999973329 Inexact Rounded 783 dqdiv4079 divide 2220337435141796724323783960231661 2220337435141796724323783960208778 -> 1.000000000000000000000000000010306 Inexact Rounded 784 dqdiv4080 divide 6447424700019783931569996989561380 6447424700019783931569996989572454 -> 0.9999999999999999999999999999982824 Inexact Rounded 785 dqdiv4081 divide 7512856762696607119847092195587180 7512856762696607119847092195557346 -> 1.000000000000000000000000000003971 Inexact Rounded 786 dqdiv4082 divide 7395261981193960399087819077237482 7395261981193960399087819077242487 -> 0.9999999999999999999999999999993232 Inexact Rounded 787 dqdiv4083 divide 2253442467682584035792724884376735 2253442467682584035792724884407178 -> 0.9999999999999999999999999999864904 Inexact Rounded 788 dqdiv4084 divide 8153138680300213135577336466190997 8153138680300213135577336466220607 -> 0.9999999999999999999999999999963683 Inexact Rounded 789 dqdiv4085 divide 4668731252254148074041022681801390 4668731252254148074041022681778101 -> 1.000000000000000000000000000004988 Inexact Rounded 790 dqdiv4086 divide 6078404557993669696040425501815056 6078404557993669696040425501797612 -> 1.000000000000000000000000000002870 Inexact Rounded 791 dqdiv4087 divide 2306352359874261623223356878316278 2306352359874261623223356878335612 -> 0.9999999999999999999999999999916171 Inexact Rounded 792 dqdiv4088 divide 3264842186668480362900909564091908 3264842186668480362900909564058658 -> 1.000000000000000000000000000010184 Inexact Rounded 793 dqdiv4089 divide 6971985047279636878957959608612204 6971985047279636878957959608615088 -> 0.9999999999999999999999999999995863 Inexact Rounded 794 dqdiv4090 divide 5262810889952721235466445973816257 5262810889952721235466445973783077 -> 1.000000000000000000000000000006305 Inexact Rounded 795 dqdiv4091 divide 7947944731035267178548357070080288 7947944731035267178548357070061339 -> 1.000000000000000000000000000002384 Inexact Rounded 796 dqdiv4092 divide 5071808908395375108383035800443229 5071808908395375108383035800412429 -> 1.000000000000000000000000000006073 Inexact Rounded 797 dqdiv4093 divide 2043146542084503655511507209262969 2043146542084503655511507209249263 -> 1.000000000000000000000000000006708 Inexact Rounded 798 dqdiv4094 divide 4097632735384534181661959731264802 4097632735384534181661959731234499 -> 1.000000000000000000000000000007395 Inexact Rounded 799 dqdiv4095 divide 3061477642831387489729464587044430 3061477642831387489729464587059452 -> 0.9999999999999999999999999999950932 Inexact Rounded 800 dqdiv4096 divide 3429854941039776159498802936252638 3429854941039776159498802936246415 -> 1.000000000000000000000000000001814 Inexact Rounded 801 dqdiv4097 divide 4874324979578599700024133278284545 4874324979578599700024133278262131 -> 1.000000000000000000000000000004598 Inexact Rounded 802 dqdiv4098 divide 5701652369691833541455978515820882 5701652369691833541455978515834854 -> 0.9999999999999999999999999999975495 Inexact Rounded 803 dqdiv4099 divide 2928205728402945266953255632343113 2928205728402945266953255632373794 -> 0.9999999999999999999999999999895223 Inexact Rounded 804 805 -- Null tests 806 dqdiv9998 divide 10 # -> NaN Invalid_operation 807 dqdiv9999 divide # 10 -> NaN Invalid_operation 808 809