(Update: added +.5, assuming reasonable rounding on the part of the site)$percentage = 13; $desired_net = 100; $charge = sprintf "%.2f", $desired_net / (1 - $percentage/100); $charge = sprintf "%.2f", $charge + .01 if $charge * (1-$percentage/100) +.5 < $desired_net;
In reply to Re: solving for x
by ysth
in thread solving for x
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |