Delete comment from: Java67
You've probably figured this out by now but I will write the answer anyway in case someone else stumbles upon this thread.
The answer is simple - because it's an integer, and integers are whole numbers. For the number to store 12.1 it would have to be a double or a float, both of which allow fractions.
Dec 30, 2019, 11:53:48 PM
Posted to Palindrome: Java program to check number is palindrome or not? Example

