Mailing List Archive

Formatting to display currency
Hello,

I want to format numeric database values to display as currency as per the
$x.xx format. I know that using [item-price] will work however I am
developing a site that will be using American and Canadian pricing.

All products have two fields (price1 and price2) that are used to store the
respective US and CAN prices. The user is prompted to choose American or
Canadian prices at the beginning of their session. This choice persists
through out the session (The idea is to pretend to be two totally different
sites while utilizing one application).

How do I format a numeric value to be shown as currency?

Thanks,

Dallas Vogels
Formatting to display currency [ In reply to ]
Any one have any ideas on this?

- Dallas

-----Original Message-----
From: interchange-users-admin@minivend.akopia.com
[mailto:interchange-users-admin@minivend.akopia.com]On Behalf Of Dallas
Vogels
Sent: Thursday, January 11, 2001 3:32 PM
To: Interchange-Users
Subject: [ic] Formatting to display currency


Hello,

I want to format numeric database values to display as currency as per the
$x.xx format. I know that using [item-price] will work however I am
developing a site that will be using American and Canadian pricing.

All products have two fields (price1 and price2) that are used to store the
respective US and CAN prices. The user is prompted to choose American or
Canadian prices at the beginning of their session. This choice persists
through out the session (The idea is to pretend to be two totally different
sites while utilizing one application).

How do I format a numeric value to be shown as currency?

Thanks,

Dallas Vogels



_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users
Formatting to display currency [ In reply to ]
If your Locale settings are correct, you should be able to use the
[currency] tag around any numbers you want formatted as country-specific
currencies.

http://developer.akopia.com/cgi-bin/ic/docfly.html?mv_arg=tagref03%2e11


Dallas Vogels wrote:
>
> Hello,
>
> I want to format numeric database values to display as currency as per the
> $x.xx format. I know that using [item-price] will work however I am
> developing a site that will be using American and Canadian pricing.
>
> All products have two fields (price1 and price2) that are used to store the
> respective US and CAN prices. The user is prompted to choose American or
> Canadian prices at the beginning of their session. This choice persists
> through out the session (The idea is to pretend to be two totally different
> sites while utilizing one application).
>
> How do I format a numeric value to be shown as currency?
>
> Thanks,
>
> Dallas Vogels
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users

--
Mark Johnson
Akopia Professional Services
mark.johnson@akopia.com
703-456-2912