Class NumberPattern
Representation of a number pattern.
- ICanBoogie\CLDR\NumberPattern uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public
parse_number( number $number
)
: array
Parse a number according to the pattern and return its integer and decimal parts.
Properties summary
Magic properties
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.