Thanks, really helped. Plus the quick reply was great. Thanks for the help. Have a nice day.:(y):
Do you mean that you want to display a floating point result, something like 23.1222? If so, consider making result a double variable, not an int, and obtaining it by dividing userNum by a double literal as well, by 1000.0 rather than 1000. You may find that you have too many decimal places showing, and if so may have to format your results with printf or String.format(...), or a DecimalFormat object.