Class NumberPattern
Representation of a number pattern.
- ICanBoogie\CLDR\NumberPattern uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public static
|
|
protected
array
|
|
public
|
|
public
string
|
|
public
array
|
#
parse_number( number $number )
Parse a number according to the pattern and return its integer and decimal parts. |
public
string
|
#
format_integer_with_group( integer $integer, string $group_symbol )
Formats integer according to group pattern. |
public
string
|
#
format_integer_with_decimal( string|integer $integer, string $decimal, string $decimal_symbol )
Formats an integer with a decimal. |
Properties summary
Magic properties
public read-only
array
|
$format
|
public read-only
string
|
$positive_prefix
Prefix to positive number. |
public read-only
string
|
$positive_suffix
Suffix to positive number. |
public read-only
string
|
$negative_prefix
Prefix to negative number. |
public read-only
string
|
$negative_suffix
Suffix to negative number. |
public read-only
integer
|
$multiplier
100 for percent, 1000 for per mille. |
public read-only
integer
|
$decimal_digits
The number of required digits after decimal point. The string is padded with zeros if there is not enough digits. |
public read-only
integer
|
$max_decimal_digits
The maximum number of digits after decimal point. Additional digits will be truncated. |
public read-only
integer
|
$integer_digits
The number of required digits before decimal point. The string is padded with zeros if there is not enough digits. |
public read-only
integer
|
$group_size1
The primary grouping size. |
public read-only
integer
|
$group_size2
The secondary grouping size. |