For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

currency

Formats the number provided in the body text as a currency value.  The default locale is used unless a different locale is specified.

See the [currency] tag and the commify filter.

Example

[filter currency.en_US]2468.2468[/filter]

Results in:

$2,468.25

Source code

sub {
    my ($val, $tag, $locale) = @_;

    my $convert = $locale ? 1 : 0;
    return Vend::Util::currency($val, 0, $convert, { locale => $locale });
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Monday 26 February 2007 at 11:37 AM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Donations  |  Contact us