46 $formatter = new \NumberFormatter($locale, \NumberFormatter::DECIMAL);
47 $formatter->setAttribute(\NumberFormatter::MIN_FRACTION_DIGITS, 0);
48 $formatter->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 100);
49 $result = (string) $formatter->format($this->value);
$value
The float-point value to format.
Interface to provide internationalization.
const LC_NUMERIC
Non-monetary numeric formats.
A class used to format floating-point values.
render(\Erebot\IntlInterface $translator)
$translator
Translator to use to improve rendering.