division code help!

BlitzPlus Forums/BlitzPlus Programming/division code help!

blade007(Posted 2007) [#1]
i need help write a code that can make division problems to where it doesn't go into decimal or where the problems don't have remainders .sorry this is hard to explain.


CS_TBL(Posted 2007) [#2]
euhm... you mean, casting to INT? (assuming the variables you were using have been floats in the first place)


blade007(Posted 2007) [#3]
nono ,i dont want to round it .i mean a code that detects if its divisable without remainders.


CS_TBL(Posted 2007) [#4]
Assuming you have a value AND a divider then:

Notify value Mod divider

If the result is 0 then there's a perfect division.


blade007(Posted 2007) [#5]
ty so much