Class NumberPattern
Representation of a number pattern.
-
ICanBoogie\CLDR\NumberPattern
uses
ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public
__get( $property )
public
__toString( void )
: string
public
parse_number( number $number )
: array
Parse a number according to the pattern and return its integer and decimal parts.
Parse a number according to the pattern and return its integer and decimal parts.
Parameters
Returns
array
An array made with the integer and decimal parts of the number.
Properties summary
Magic properties
public read-only
$positive_prefix
: string
Prefix to positive number.
public read-only
$positive_suffix
: string
Suffix to positive number.
public read-only
$negative_prefix
: string
Prefix to negative number.
public read-only
$negative_suffix
: string
Suffix to negative number.
public read-only
$multiplier
: integer
100 for percent, 1000 for per mille.
public read-only
$decimal_digits
: integer
The number of required digits after decimal point. The string is padded with zeros if there is not enough digits. -1 means the decimal point should be dropped.
public read-only
$max_decimal_digits
: integer
The maximum number of digits after decimal point. Additional digits will be truncated.
public read-only
$integer_digits
: integer
The number of required digits before decimal point. The string is padded with zeros if there is not enough digits.
public read-only
$group_size1
: integer
The primary grouping size. 0 means no grouping.
public read-only
$group_size2
: integer
The secondary grouping size. 0 means no secondary grouping