PDA

View Full Version : Math question



vios
- 22nd September 2007, 19:09
Hello, I am new to PBP and I want to know about following math function (all figures are byte)

A = 250
B = A / 130
C = B * 130 <--- will the result (C) back to 250 ?

Ioannis
- 22nd September 2007, 19:17
Nop. The result will be only 130!

Just integer math here!

Ioannis

vios
- 22nd September 2007, 19:53
thanks Ioannis