aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not returning a value