Ah, fixed it myself.. The line that says:
result = inputValue*1000;
Should be:
result = inputValue*1000L;
Since both 'inputValue' and '1000' were considered 'int' type variables, the program lopped off some bits before assigning it to 'result'.
Fix: Force '1000' to be a long type of number by using '1000L'.
Sorry, I'm a noob to C. Hope this helps others too.
-
- Garrett