Remove round().

This commit is contained in:
James Cole 2020-07-19 20:07:58 +02:00
parent 7f3168cc55
commit 6881d4479e
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -72,13 +72,12 @@ class Amount
$locale = app('steam')->getLocale();
$coloured = $coloured ?? true;
$float = round($amount, 12);
$fmt = new NumberFormatter( $locale, NumberFormatter::CURRENCY );
$fmt->setSymbol(NumberFormatter::CURRENCY_SYMBOL, $symbol);
$fmt->setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, $decimalPlaces);
$fmt->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, $decimalPlaces);
$result = $fmt->format($float);
$result = $fmt->format($amount);
if (true === $coloured) {
if ($amount > 0) {