simple maths problem!!

tim griff

Dear All

I'm simulating this simple maths on editor 5.2.7
let w0 = 913

let w1= w0 - 102
let w1= w1 *61
let w3= w1/100
let w2 =w1//100

I hoped w3 would be 494, but the simulator gives me 495.

w2 is correct as 71.
It seems to round up with some values

What I'm I doing wrong please?


Senior Member
The simple answer to your question is this.
update your PE software, I ran your code and got the correct answers.
I'm using v5.35.


Last edited: