<?php $a = new \NumberFormatter('en_US', \NumberFormatter::CURRENCY); $a->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 8); $a->setSymbol(NumberFormatter::CURRENCY_SYMBOL, ''); // It's empty because I want it "minimal" for a table. var_dump($a->formatCurrency(0.0043, 'BTC'));
You have javascript disabled. You will not be able to edit any code.