Method |
Description |
|
__construct ( $data = [], $type = NumberFormatInfo::DECIMAL ) |
Initializes a new writable instance of the NumberFormatInfo class
that is dependent on the ICU data for number, decimal, and currency
formatting information. N.B.You should not initialize this
class directly unless you know what you are doing. Please use use
NumberFormatInfo::getInstance() to create an instance. |
|
__get ( $name ) : mixed |
Allow functions that begins with 'set' to be called directly
as an attribute/property to retrieve the value. |
|
__set ( $name, $value ) |
Allow functions that begins with 'set' to be called directly
as an attribute/property to set the value. |
|
getCurrencyInstance ( $culture = null ) : NumberFormatInfo |
Returns the currency format info associated with the specified culture. |
|
getCurrencySymbol ( $currency = 'USD' ) : string |
Gets the string to use as the currency symbol. |
|
getDecimalDigits ( ) : integer |
Indicates the number of decimal places. |
|
getDecimalSeparator ( ) : string |
Gets the string to use as the decimal separator. |
|
getDigitSize ( ) |
|
|
getGroupSeparator ( ) : string |
Gets the string that separates groups of digits to the left
of the decimal in currency values. |
|
getGroupSizes ( ) : array |
Gets the number of digits in each group to the left of the decimal
There can be two grouping sizes, this fucntion
returns array(group1, group2), if there is only 1 grouping size,
group2 will be false. |
|
getInstance ( $culture = null, $type = NumberFormatInfo::DECIMAL ) : NumberFormatInfo |
Returns the NumberFormatInfo associated with the specified culture. |
|
getInvariantInfo ( $type = NumberFormatInfo::DECIMAL ) : NumberFormatInfo |
Gets the default NumberFormatInfo that is culture-independent
(invariant). |
|
getNaNSymbol ( ) : string |
Gets the string that represents the IEEE NaN (not a number) value. |
|
getNegativeInfinitySymbol ( ) : string |
Gets the string that represents negative infinity. |
|
getNegativePattern ( ) : arary |
Gets the format pattern for negative values. |
|
getNegativeSign ( ) : string |
Gets the string that denotes that the associated number is negative. |
|
getPattern ( ) |
|
|
getPerMilleSymbol ( ) : string |
Gets the string to use as the per mille symbol. |
|
getPercentSymbol ( ) : string |
Gets the string to use as the percent symbol. |
|
getPercentageInstance ( $culture = null ) : NumberFormatInfo |
Returns the percentage format info associated with the specified culture. |
|
getPositiveInfinitySymbol ( ) : string |
Gets the string that represents positive infinity. |
|
getPositivePattern ( ) : arary |
Gets the format pattern for positive values. |
|
getPositiveSign ( ) : string |
Gets the string that denotes that the associated number is positive. |
|
getScientificInstance ( $culture = null ) : NumberFormatInfo |
Returns the scientific format info associated with the specified culture. |
|
setCurrencySymbol ( $symbol ) |
Set the string to use as the currency symbol. |
|
setDecimalDigits ( $value ) |
Set the number of decimal places. |
|
setDecimalSeparator ( $value ) |
Set the string to use as the decimal separator. |
|
setDigitSize ( $value ) |
|
|
setGroupSeparator ( $value ) |
Set the string to use as the group separator. |
|
setGroupSizes ( $groupSize ) |
Set the number of digits in each group to the left of the decimal. |
|
setNaNSymbol ( $value ) |
Set the string that represents the IEEE NaN (not a number) value. |
|
setNegativeInfinitySymbol ( $value ) |
Set the string that represents negative infinity. |
|
setNegativePattern ( $pattern ) |
Set the format pattern for negative values. |
|
setNegativeSign ( $value ) |
Set the string that denotes that the associated number is negative. |
|
setPattern ( $type = NumberFormatInfo::DECIMAL ) |
Set the pattern for a specific number pattern. The validate patterns
NumberFormatInfo::DECIMAL, NumberFormatInfo::CURRENCY,
NumberFormatInfo::PERCENTAGE, or NumberFormatInfo::SCIENTIFIC |
|
setPerMilleSymbol ( $value ) |
Set the string to use as the per mille symbol. |
|
setPercentSymbol ( $value ) |
Set the string to use as the percent symbol. |
|
setPositiveInfinitySymbol ( $value ) |
Set the string that represents positive infinity. |
|
setPositivePattern ( $pattern ) |
Set the format pattern for positive values. |
|
setPositiveSign ( $value ) |
Set the string that denotes that the associated number is positive. |
|