File: divmod.decTest

package info (click to toggle)
mpdecimal 4.0.1-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,232 kB
  • sloc: ansic: 17,917; cpp: 6,508; sh: 4,236; makefile: 621; lisp: 502; python: 85; asm: 18
file content (19 lines) | stat: -rw-r--r-- 1,516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- Selected test cases to reduce both the archive size and runtime.  For the
-- large test suite, download the separate mpdecimal-testdata distribution and
-- replace the testdata_dist directory.

rounding: half_even
minExponent: -999999999
maxExponent: 999999999

precision: 4
divmod0  divmod  +.19e-911565689  3  ->  0  1.9E-911565690  
precision: 134
divmod1  divmod  -7511169757701755204403067994764250868266023726415875410280423917144182133410083809891399408586918959074  4246476766758966627011583811854662354887063790038443  ->  -1768800389183453909698778567576755142065118498146502  -2797376381641405358930320502134014338018800092982688  
precision: 262
divmod2  divmod  -Inf  +7.905442548849169790507598032704018880614786823147752534821712985326338770302489617E486798639  ->  -Infinity  NaN  Invalid_operation 
precision: 216
divmod3  divmod  -757719995173294752327540483701116946913961037738625667311193429926112129713646725612959034118065582310312494071362898125823373077706316701639971503.7061421  62623122235568293491576846461787522859478144460815517209962234575328066320595  ->  -12099684080314501435119346718279324158329411218353503927245988982340212  -27825671910110331254919071614638382146665442212850800774501568154918287705363.7061421  
precision: 264
divmod60  divmod  .29710504707442803271433301062233400148972305067963266041512977334667175052716876430358025717559782571789385135307807427e+408570266  316018911136590957402752480309236024133069474131769799.16590  ->  NaN  NaN  Invalid_operation