added isNumeric function and changed input of floating arguments