This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Not returning a value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Not returning a value

brandon sexton
Greenhorn

Joined: Mar 28, 2009
Posts: 8
I cant get "\nNet Pay: " + netPay(dGrossPay, dRetirement)); to display anything other than 0.0



ctc chan
Greenhorn

Joined: Nov 18, 2009
Posts: 1
It looks like to be the calculation that "dGrossPay" was set to be 0.0 and was never updated.

And thus in the last line, it would simply return 0.0


Hope this helps.
brandon sexton
Greenhorn

Joined: Mar 28, 2009
Posts: 8
I figured that was what the problem is. I have tried to fix it but not sure how to get that updated.
 
wood burning stoves
 
subject: Not returning a value
 
Similar Threads
payroll
Not passing the value
Logic Errors
Issues with if else statement
DUE AT MIDNIGHT TONIGHT..1 ERROR..HELP