I know int() will return the base value if the first argument is a whole number but will return an error if the number has a decimal.
For example,