Page 1 of 1

arithmetic combinator bug

Posted: Wed Jul 19, 2017 12:10 am
by craig_g
The arithmetic combinator cant multiply properly. It can multiply properly with other ores from what I cant test, just seem to get this behaviour for copper.
It works for some numbers but not others strangely enough.

The number seems to roll into the negative without reason. Picture below says it all.

Re: arithmetic combinator bug

Posted: Wed Jul 19, 2017 12:12 am
by craig_g
running version 0.15.30

Re: arithmetic combinator bug

Posted: Wed Jul 19, 2017 3:39 am
by Alfred0110
This is caused by integer overflow - if the result of an operation exceeds the range of a 32-bit integer (about 2.15 billion) it will wrap around and become negative.

Re: arithmetic combinator bug

Posted: Wed Jul 19, 2017 5:22 am
by Loewchen
Based on: viewtopic.php?f=23&t=48386 not a bug.

Re: arithmetic combinator bug

Posted: Thu Jul 20, 2017 12:12 pm
by craig_g
Now I know the problem I have put in a work around.
Thanks :)