symfony API

sfNumberFormatInfo Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfNumberFormatInfo class

Method Summary

Method Details

  • (sfNumberFormatInfo) getCurrencyInstance () Browse code

    Returns the currency format info associated with the specified culture.

    returns sfNumberFormatInfo for the specified culture.

  • (string) getCurrencySymbol () Browse code

    Gets the string to use as the currency symbol.

    returns currency symbol.

  • (int) getDecimalDigits () Browse code

    Indicates the number of decimal places.

    returns number of decimal places.

  • (string) getDecimalSeparator () Browse code

    Gets the string to use as the decimal separator.

    returns decimal separator.

  • (string) getGroupSeparator () Browse code

    Gets the string that separates groups of digits to the left

    of the decimal in currency values.

    returns currency group separator.

  • (array) getGroupSizes () Browse code

    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.

    returns grouping size(s).

  • (sfNumberFormatInfo) getInstance (, ) Browse code

    Returns the sfNumberFormatInfo associated with the specified culture.

    returns sfNumberFormatInfo for the specified culture.

  • (sfNumberFormatInfo) getInvariantInfo () Browse code

    Gets the default sfNumberFormatInfo that is culture-independent (invariant).

    returns default sfNumberFormatInfo.

  • (string) getNaNSymbol () Browse code

    Gets the string that represents the IEEE NaN (not a number) value.

    returns NaN symbol.

  • (string) getNegativeInfinitySymbol () Browse code

    Gets the string that represents negative infinity.

    returns negative infinity.

  • (arary) getNegativePattern () Browse code

    Gets the format pattern for negative values.

    The negative pattern is composed of a prefix, and postfix.
    This function returns array(prefix, postfix).

    returns negative pattern.

  • (string) getNegativeSign () Browse code

    Gets the string that denotes that the associated number is negative.

    returns negative sign.

  • getPattern () Browse code

  • (sfNumberFormatInfo) getPercentageInstance () Browse code

    Returns the percentage format info associated with the specified culture.

    returns sfNumberFormatInfo for the specified culture.

  • (string) getPercentSymbol () Browse code

    Gets the string to use as the percent symbol.

    returns percent symbol.

  • (string) getPerMilleSymbol () Browse code

    Gets the string to use as the per mille symbol.

    returns percent symbol.

  • (string) getPositiveInfinitySymbol () Browse code

    Gets the string that represents positive infinity.

    returns positive infinity.

  • (arary) getPositivePattern () Browse code

    Gets the format pattern for positive values.

    The positive pattern is composed of a prefix, and postfix.
    This function returns array(prefix, postfix).

    returns positive pattern.

  • (string) getPositiveSign () Browse code

    Gets the string that denotes that the associated number is positive.

    returns positive sign.

  • (array) getPrePostfix () Browse code

    Gets the prefix and postfix of a pattern.

    returns of prefix and postfix, array(prefix,postfix).

  • (sfNumberFormatInfo) getScientificInstance () Browse code

    Returns the scientific format info associated with the specified culture.

    returns sfNumberFormatInfo for the specified culture.

  • (array) parsePattern () Browse code

    Parses the given pattern and return a list of known properties.

    returns list of pattern properties.

  • setCurrencySymbol () Browse code

    Sets the string to use as the currency symbol.

  • setDecimalDigits () Browse code

    Sets the number of decimal places.

  • setDecimalSeparator () Browse code

    Sets the string to use as the decimal separator.

  • setGroupSeparator () Browse code

    Sets the string to use as the group separator.

  • setGroupSizes () Browse code

    Sets the number of digits in each group to the left of the decimal.

    There can be two grouping sizes, the value should
    be an array(group1, group2), if there is only 1 grouping size,
    group2 should be false.

  • setNaNSymbol () Browse code

    Sets the string that represents the IEEE NaN (not a number) value.

  • setNegativeInfinitySymbol () Browse code

    Sets the string that represents negative infinity.

  • setNegativePattern () Browse code

    Sets the format pattern for negative values.

    The negative pattern is composed of a prefix, and postfix in the form
    array(prefix, postfix).

  • setNegativeSign () Browse code

    Sets the string that denotes that the associated number is negative.

  • setPattern () Browse code

    Sets the pattern for a specific number pattern. The validate patterns

    sfNumberFormatInfo::DECIMAL, sfNumberFormatInfo::CURRENCY,
    sfNumberFormatInfo::PERCENTAGE, or sfNumberFormatInfo::SCIENTIFIC

  • setPercentSymbol () Browse code

    Sets the string to use as the percent symbol.

  • setPerMilleSymbol () Browse code

    Sets the string to use as the per mille symbol.

  • setPositiveInfinitySymbol () Browse code

    Sets the string that represents positive infinity.

  • setPositivePattern () Browse code

    Sets the format pattern for positive values.

    The positive pattern is composed of a prefix, and postfix in the form
    array(prefix, postfix).

  • setPositiveSign () Browse code

    Sets the string that denotes that the associated number is positive.

  • __construct () Browse code

    Initializes a new writable instance of the sfNumberFormatInfo 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
    sfNumberFormatInfo::getInstance() to create an instance.

  • (mixed) __get () Browse code

    Allows functions that begins with 'set' to be called directly

    as an attribute/property to retrieve the value.

  • __set () Browse code

    Allows functions that begins with 'set' to be called directly

    as an attribute/property to set the value.