Jump to content
SubSpace Forum Network

Recommended Posts

Posted

when you changed int(a/ B) 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

Guest
This topic is now closed to further replies.
×
×
  • Create New...