usage:
mob/verb/testfmod()
var result = fmod(1.3,5.2)
I think this'd be really useful for some games.
ID:1665043
Aug 24 2014, 1:34 am
|
|||||||
| |||||||
I personally think this would be easy to implement, as math.h/cmath have fmod() built-in to allow modulo for floating-point numbers. Can BYOND have this?
usage: mob/verb/testfmod() I think this'd be really useful for some games. |
http://www.byond.com/forum/?post=1664849#comment11746690
I wouldn't disagree on a native option - but I haven't yet had an issue with the method above.