Is this going to give wrong results if the user enters a decimal value?