I'm working on a palindrome function for numbers. Whenever I enter a 3 digit number, the reversed number loses a value of 1. I can't find what is causing this and I'm hoping that someone else can spot it.
I misspoke: Change the backwards variable to a double. Also, try putting a debug statement in the for-loop to see the various values as "i" is decremented.