Say I have a list of numbers and that my program is only supposed to deal with integer values... Does anyone know a simple way to determine if one of the values is a decimal (like 5.6) , output a message and skip it?
I already know a way to locate letters/negative and output an error message, but the if statement i used does not work for decimals.
the list looks like this:
10
45
86
5.6
6
abc
12
I have to convert the integers to another base...