ID:169637
 
Is there a way to check if a number is a whole number or not? By whole number I mean numbers like "1,2,1223,3545,3423423423545,342341,1231,4" instead of "1.5,876567.3,0.32486789434283742".
Round the number using the round() proc. If the rounded number is different than the original number, that means that the original number wasn't an integer.
Actually, I have a question to add here:

Does BYOND support that % operator(I forget what it's called) the same way that C++ does?

RD
In response to Rurouni Dragon
Rurouni Dragon wrote:
Does BYOND support that % operator(I forget what it's called) the same way that C++ does?

Yes, it does.
In response to Wizkidd0123
Right, modulo. Thanks for the clarification, Wiz.

RD