Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Not returning a value

 
brandon sexton
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
I cant get "\nNet Pay: " + netPay(dGrossPay, dRetirement)); to display anything other than 0.0



 
ctc chan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
I figured that was what the problem is. I have tried to fix it but not sure how to get that updated.
 
    Bookmark Topic Watch Topic
  • New Topic