addition bug?
Posted: Fri Oct 25, 2013 9:46 pm
I'm having trouble with simple integer addition. When I do calculations with integers, I get a real number approximation back. e.g., (17 + 12)-30 produces something like -0.969697
do I need to do something to convert values to integers before doing calculations? It doesn't help to just round the result as I am getting results that are off by 1 that way.
It seems to work fine when I type into the message box, but in handlers I get the realvalue. I'm attaching a trace from a function that shows the error.
Thanks for any suggestions.
do I need to do something to convert values to integers before doing calculations? It doesn't help to just round the result as I am getting results that are off by 1 that way.
It seems to work fine when I type into the message box, but in handlers I get the realvalue. I'm attaching a trace from a function that shows the error.
Thanks for any suggestions.