Actually tabstop, your last suggestion there would seem to match the criteria of the program. Based on the "menu" string in the original post, the "modulus" option is expecting integers - so there shouldn't be any fractional parts if proper input specs are heeded. Casting the inputs to int would be an alternative, as well.