monkeybidz Posted March 6, 2008 Share Posted March 6, 2008 I need to get a defined percentage by using some math whith the vars. In the example below, I would need to get 5% of 1,000.00. <?php $BASEAMOUNT = "1000.00"; $BUYER_PERCENTAGE = "5.0000";//<-- 5%. This Var can be changed in database, so I need to use vars instead of numbers. ?> $FEEBUY = "Math Problem Here"; Quote Link to comment Share on other sites More sharing options...
schilly Posted March 6, 2008 Share Posted March 6, 2008 $FEEBUY = $BASEMOUNT * $BUYER_PERCENTAGE / 100; Quote Link to comment Share on other sites More sharing options...
monkeybidz Posted March 6, 2008 Author Share Posted March 6, 2008 Will try it. Thanks! Quote Link to comment Share on other sites More sharing options...
keeB Posted March 6, 2008 Share Posted March 6, 2008 Someone didn't pass highschool math Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.