You are here

function Currency::format in Currency 7.2

Format an amount using this currency and the environment's default locale pattern.

This is a wrapper for CurrencyLocalePattern::format() in situations where the environment's default locale pattern should be used.

Parameters

string $amount: A numeric string.

Return value

string

File

currency/includes/Currency.inc, line 71
Contains class Currency.

Class

Currency
Describes a currency.

Code

function format($amount) {
  return CurrencyLocalePattern::loadFromEnv()
    ->format($this, $amount);
}