wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
jQuery in Action, 2nd edition
 
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