Changes between Initial Version and Version 1 of Ticket #436, comment 2


Ignore:
Timestamp:
Jul 5, 2012, 5:12:34 PM (11 years ago)
Author:
Oleksandr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #436, comment 2

    initial v1  
    3434}
    3535}}}
     36
     37the result is as follows:
     38{{{
     39int -7 / bigint 5 :: /: -1 , q:  -1 , r:  3
     40==:  0 , diff:  -2  <> r:  3
     41q must be:  -2
     42
     43int -7 / bigint -5 :: /: 1 , q:  1 , r:  3
     44==:  0 , diff:  -2  <> r:  3
     45q must be:  2
     46
     47int -7 / bigint 5000000000000000 :: /: 0 , q:  0 , r:  4999999999999993
     48==:  0 , diff:  -7  <> r:  4999999999999993
     49q must be:  -1
     50
     51int -7 / bigint -5000000000000000 :: /: 0 , q:  0 , r:  4999999999999993
     52==:  0 , diff:  -7  <> r:  4999999999999993
     53q must be:  1
     54
     55bigint -7 / int 5 :: /: -1 , q:  -1 , r:  3
     56==:  0 , diff:  -2  <> r:  3
     57q must be:  -2
     58
     59bigint -7 / int -5 :: /: 1 , q:  1 , r:  3
     60==:  0 , diff:  -2  <> r:  3
     61q must be:  2
     62
     63bigint -7 / bigint 5 :: /: -1 , q:  -1 , r:  3
     64==:  0 , diff:  -2  <> r:  3
     65q must be:  -2
     66
     67bigint -7 / bigint -5 :: /: 1 , q:  1 , r:  3
     68==:  0 , diff:  -2  <> r:  3
     69q must be:  2
     70
     71bigint -7 / bigint 5000000000000000 :: /: 0 , q:  0 , r:  4999999999999993
     72==:  0 , diff:  -7  <> r:  4999999999999993
     73q must be:  -1
     74
     75bigint -7 / bigint -5000000000000000 :: /: 0 , q:  0 , r:  4999999999999993
     76==:  0 , diff:  -7  <> r:  4999999999999993
     77q must be:  1
     78
     79bigint 7000000000000000 / bigint -5000000000000000 :: /: -2 , q:  -2 , r:  2000000000000000
     80==:  0 , diff:  -3000000000000000  <> r:  2000000000000000
     81q must be:  -1
     82
     83bigint -7000000000000000 / bigint -5000000000000000 :: /: 1 , q:  1 , r:  3000000000000000
     84==:  0 , diff:  -2000000000000000  <> r:  3000000000000000
     85q must be:  2
     86
     87int -268435456 / bigint 5 :: /: -53687091 , q:  -53687091 , r:  4
     88==:  0 , diff:  -1  <> r:  4
     89q must be:  -53687092
     90
     91int 268435456 / bigint -5 :: /: -53687092 , q:  -53687092 , r:  1
     92==:  0 , diff:  -4  <> r:  1
     93q must be:  -53687091
     94
     95int -268435456 / bigint -5 :: /: 53687091 , q:  53687091 , r:  4
     96==:  0 , diff:  -1  <> r:  4
     97q must be:  53687092
     98
     99int -268435456 / bigint 5000000000000000 :: /: 0 , q:  0 , r:  4999999731564544
     100==:  0 , diff:  -268435456  <> r:  4999999731564544
     101q must be:  -1
     102
     103int 268435456 / bigint -5000000000000000 :: /: -1 , q:  -1 , r:  268435456
     104==:  0 , diff:  -4999999731564544  <> r:  268435456
     105q must be:  0
     106
     107int -268435456 / bigint -5000000000000000 :: /: 0 , q:  0 , r:  4999999731564544
     108==:  0 , diff:  -268435456  <> r:  4999999731564544
     109q must be:  1
     110
     111bigint -268435456 / int 5 :: /: -53687091 , q:  -53687091 , r:  4
     112==:  0 , diff:  -1  <> r:  4
     113q must be:  -53687092
     114
     115bigint 268435456 / int -5 :: /: -53687092 , q:  -53687092 , r:  1
     116==:  0 , diff:  -4  <> r:  1
     117q must be:  -53687091
     118
     119bigint -268435456 / int -5 :: /: 53687091 , q:  53687091 , r:  4
     120==:  0 , diff:  -1  <> r:  4
     121q must be:  53687092
     122
     123bigint -268435456 / bigint 5 :: /: -53687091 , q:  -53687091 , r:  4
     124==:  0 , diff:  -1  <> r:  4
     125q must be:  -53687092
     126
     127bigint 268435456 / bigint -5 :: /: -53687092 , q:  -53687092 , r:  1
     128==:  0 , diff:  -4  <> r:  1
     129q must be:  -53687091
     130
     131bigint -268435456 / bigint -5 :: /: 53687091 , q:  53687091 , r:  4
     132==:  0 , diff:  -1  <> r:  4
     133q must be:  53687092
     134
     135bigint -268435456 / bigint 5000000000000000 :: /: 0 , q:  0 , r:  4999999731564544
     136==:  0 , diff:  -268435456  <> r:  4999999731564544
     137q must be:  -1
     138
     139bigint 268435456 / bigint -5000000000000000 :: /: -1 , q:  -1 , r:  268435456
     140==:  0 , diff:  -4999999731564544  <> r:  268435456
     141q must be:  0
     142
     143bigint -268435456 / bigint -5000000000000000 :: /: 0 , q:  0 , r:  4999999731564544
     144==:  0 , diff:  -268435456  <> r:  4999999731564544
     145q must be:  1
     146}}}