ID:169637
![]() May 21 2005, 3:43 pm
|
|
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".
|
![]() May 21 2005, 3:44 pm
|
|
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 |
Rurouni Dragon wrote:
Does BYOND support that % operator(I forget what it's called) the same way that C++ does? Yes, it does. |