public function setAttribute(int
$attr,
int
$value )
Parameters
$attr
—
int
An attribute specifier, one of the numeric attribute constants. The only currently supported attributes are NumberFormatter::FRACTION_DIGITS, NumberFormatter::GROUPING_USED and NumberFormatter::ROUNDING_MODE.
$value
—
int
The attribute value. The only currently supported rounding modes are NumberFormatter::ROUND_HALFEVEN, NumberFormatter::ROUND_HALFDOWN and NumberFormatter::ROUND_HALFUP.