| Methods | ||
|---|---|---|
public
|
__construct(string $locale, int $style, ?string $pattern = null)
|
# |
public
static
|
create(string $locale, int $style, ?string $pattern = null): NumberFormatter|null
|
# |
public
|
format(int|float $num, int $type = NumberFormatter::TYPE_DEFAULT): string|false
|
# |
public
|
parse(string $string, int $type = NumberFormatter::TYPE_DOUBLE, int &$offset = null): int|float|false
|
# |
public
|
formatCurrency(float $amount, string $currency): string|false
|
# |
public
|
parseCurrency(string $string, string &$currency, int &$offset = null): float|false
|
# |
public
|
setAttribute(int $attribute, int|float $value): bool
|
# |
public
|
getAttribute(int $attribute): int|float|false
|
# |
public
|
setTextAttribute(int $attribute, string $value): bool
|
# |
public
|
getTextAttribute(int $attribute): string|false
|
# |
public
|
setSymbol(int $symbol, string $value): bool
|
# |
public
|
getSymbol(int $symbol): string|false
|
# |
public
|
setPattern(string $pattern): bool
|
# |
public
|
getPattern(): string|false
|
# |
public
|
getLocale(int $type = ULOC_ACTUAL_LOCALE): string|false
|
# |
public
|
getErrorCode(): int
|
# |
public
|
getErrorMessage(): string
|
# |