properly format payout and round it
This commit is contained in:
parent
64d8d8abf3
commit
a3ddf0cfcc
@ -44,7 +44,7 @@ verbose("ID\tUsername\tInvalid\tValid\t\tPPS Value\t\t\tPayout\t\tDonation\tFee\
|
|||||||
|
|
||||||
foreach ($aAccountShares as $aData) {
|
foreach ($aAccountShares as $aData) {
|
||||||
// Take our valid shares and multiply by per share value
|
// 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
|
// Defaults
|
||||||
$aData['fee' ] = 0;
|
$aData['fee' ] = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user