NumberFormatter::getPattern()

bool|string getPattern() Not supported. Returns the formatter's pattern. Return Value bool|string The pattern string used by the formatter or false on error Exceptions MethodNotImplementedException See also http://www.php.net/manual/en/numberformatter.getpattern.php

NumberFormatter::getLocale()

string getLocale(int $type = Locale::ACTUAL_LOCALE) Returns the formatter's locale. The parameter $type is currently ignored. Parameters int $type Not supported. The locale name type to return (Locale::VALIDLOCALE or Locale::ACTUALLOCALE) Return Value string The locale used to create the formatter. Currently always returns "en". See also http://www.php.net/manual/en/numberformatter.getlocale.php

NumberFormatter::getErrorMessage()

string getErrorMessage() Returns formatter's last error message. Always returns the UZEROERROR_MESSAGE class constant value. Return Value string The error message from last formatter call See also http://www.php.net/manual/en/numberformatter.geterrormessage.php

NumberFormatter::getErrorCode()

int getErrorCode() Returns formatter's last error code. Always returns the UZEROERROR class constant value. Return Value int The error code from last formatter call See also http://www.php.net/manual/en/numberformatter.geterrorcode.php

NumberFormatter::getAttribute()

bool|int getAttribute(int $attr) Returns an attribute value. Parameters int $attr An attribute specifier, one of the numeric attribute constants Return Value bool|int The attribute value on success or false on error See also http://www.php.net/manual/en/numberformatter.getattribute.php

NumberFormatter::formatCurrency()

string formatCurrency(float $value, string $currency) Format a currency value. Parameters float $value The numeric currency value string $currency The 3-letter ISO 4217 currency code indicating the currency to use Return Value string The formatted currency value See also http://www.php.net/manual/en/numberformatter.formatcurrency.php https://en.wikipedia.org/wiki/ISO_4217#Active_codes

NumberFormatter::format()

bool|string format(number $value, int $type = self::TYPE_DEFAULT) Format a number. Parameters number $value The value to format int $type Type of the formatting, one of the format type constants Only type NumberFormatter::TYPE_DEFAULT is currently supported. Return Value bool|string The formatted value or false on error Exceptions NotImplementedException If the method is called with the class $style 'CURRENCY' MethodArgumentValueNotImplementedException If the $type is different

NumberFormatter::create()

static NumberFormatter create(string $locale = 'en', int $style = null, string $pattern = null) Static constructor. Parameters string $locale The locale code. The only supported locale is "en" (or null using the default locale, i.e. "en") int $style Style of the formatting, one of the format style constants The only currently supported styles are NumberFormatter::DECIMAL and NumberFormatter::CURRENCY. string $pattern Not supported. A pattern string in case $style is

NumberFormatter

class NumberFormatter Replacement for PHP's native {@link \NumberFormatter} class. The only methods currently supported in this class are: {@link __construct} {@link create} {@link formatCurrency} {@link format} {@link getAttribute} {@link getErrorCode} {@link getErrorMessage} {@link getLocale} {@link parse} {@link setAttribute} Constants PATTERN_DECIMAL DECIMAL CURRENCY PERCENT SCIENTIFIC SPELLOUT ORDINAL DURATION PATTERN_RULEBASED IGNORE DEFAULT_STY

NumberComparator

class NumberComparator extends Comparator NumberComparator compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again. Now this would be very pointless, if NumberCompare didn't understand magnitudes. The target value may use magnitudes of kilobytes (k, ki), megabytes (m, mi), or gigabytes (g, gi). Those suffixed with an i use the appropriate 2**n version in accordance with the IEC standard: http://physics.nist.gov/cuu/Units/binary.html Based o