Symfony\Component\Intl\NumberFormatter\NumberFormatter::format
Format a number
Signature
public function format(number
$value,
[int
$type = self::TYPE_DEFAULT] )
Parameters
$value
—
object
- The value to format
$type
—
int
- Type of the formatting, one of the format type constants.
Only type NumberFormatter::TYPE_DEFAULT is currently supported.
Returns
- Boolean|string
- The formatted value or false on error
Errors/Exceptions
-
NotImplementedException
- If the method is called with the class $style 'CURRENCY'
-
MethodArgumentValueNotImplementedException
- If the $type is different than TYPE_DEFAULT