Division vs DIV - Valentin's findings
|
04-02-2023, 05:16 PM
Post: #2
|
|||
|
|||
RE: Division vs DIV - Valentin's findings
These cases are not rare at all, as soon as the dividend is >1E11 such as (4E11+7)/4 --> 10000000002 that clearly illustrates what is happening.
Although I don't have a rigorous reasoning, I don't believe the problem can occur with dividend X<1E11, so IP(X/Y) is then safe for integer division. This is not specific to the 71B or Saturn machines, it happens as well on the 10-digit 41C and 34-digit Free42 with the 1E9 and 1E33 limits, respectively. Rule of the thumb: pay attention to integer divisions when the dividend is less than a factor of 10 from the maximum integer. J-F |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Division vs DIV - Valentin's findings - EdS2 - 04-02-2023, 04:22 PM
RE: Division vs DIV - Valentin's findings - J-F Garnier - 04-02-2023 05:16 PM
RE: Division vs DIV - Valentin's findings - EdS2 - 04-02-2023, 05:31 PM
|
User(s) browsing this thread: 1 Guest(s)