Round on max number of decimals #506

This commit is contained in:
James Cole
2016-12-28 21:55:46 +01:00
parent f010c17ae6
commit fe9344cd0a

View File

@@ -157,7 +157,7 @@ class Transaction extends Model
*/ */
public function setAmountAttribute($value) public function setAmountAttribute($value)
{ {
$this->attributes['amount'] = strval(round($value, 2)); $this->attributes['amount'] = strval(round($value, 12));
} }
/** /**