In mIRC, I've found it very quick and easy to use it's help files, /help $floor for example returns "Returns N rounded to the next lowest integer." Not trying to be rude, but sometimes things are really that easy. smile

I've always just used $floor as I don't care if a user tries to exploit the numbers. I'll just let the script fix it. However, if you wanted to create a reply as you mentioned, you can just have the script check if the number is whole. Something like the following code...

Code:
IF ($int($2) == $2) MSG $chan YAY!  YOU USED A WHOLE NUMBER!
ELSE MSG $chan BOOOOO!  YOU DIDN'T USE A WHOLE NUMBER!


From my understanding, $int is extremely similar to $floor, but seems more appropriate in this case. I really don't think it would matter which you use unless there's negative numbers involved. Of course, the user could still use a whole number with decimals, like 13.0000000000000. If you wanted to prevent that, I think you may need to use REGEX. Someone correct me if I am wrong with anything here. I have only been writing scripts for a few months now myself.

Found on the forums: https://forums.mirc.com/ubbthreads.php/topics/254204/Way_to_only_read_whole_numbers