Greetings all...long time reader, first time poster.
I have 2 java files, one that contains methods that do conversions, the other contains a loop that allows a user to select "what" they want to convert. The program works, but one of the conversions is to multiply by 0.0092. When I do a test of input data (I usually start with 1000) instead of getting 9.2, I get 9. Lower numbers like 100 return 0.0 instead of 0.92.
Both the input and the return statements indicate "double", so is there a way to get more precise with the return double?
Also, I saw something in my text book that sort of did this, but through a print line method. (this is from memory, I don't have my book with me) It was something like:
System.out.printf(%5.2 yada yada yada)
So I'm wondering if there's a way to get that kind of format without incorporating it in a print statement.
Thanks for any consideration and/or help.
Bud