properly format payout and round it

This commit is contained in:
Sebastian Grewe 2013-06-06 23:31:35 +02:00
parent 64d8d8abf3
commit a3ddf0cfcc

View File

@ -44,7 +44,7 @@ verbose("ID\tUsername\tInvalid\tValid\t\tPPS Value\t\t\tPayout\t\tDonation\tFee\
foreach ($aAccountShares as $aData) {
// Take our valid shares and multiply by per share value
$aData['payout'] = $aData['valid'] * $pps_value;
$aData['payout'] = number_format(round($aData['valid'] * $pps_value, 8));
// Defaults
$aData['fee' ] = 0;