Drake7707 Posted October 30, 2006 Report Posted October 30, 2006 when you changed int(a/ into a\b, you'll have to see if b is an integer. If b can be a decimal number it will make that division to a => integer, b=>integer, then divide and change to integer. So any divisions by a decimal are now screwed up. (Cogwheel & Star used them a lot) Didn't know that either, but i get a lot of divisions by zero because it divides by 0.3 or so and it rounds to 0 Don't use integer divisions if floating poitn operations are involved, you lose a lot of accuracy
Samapico Posted October 30, 2006 Report Posted October 30, 2006 doh... i'll revert that next time i get a chance --- done
Recommended Posts