Jump to content

Quick Percentage Problem


monkeybidz

Recommended Posts

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";

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/94631-quick-percentage-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.