Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
currency:getcurrency
Converts a double to a displayable currency string.
Syntax
<currency
:getcurrency name="curname
" value="fpvalue
"varname
="varname
"/>Parameters
name
(required)- Input parameter. Name of the currency object.
value
(required)- Input parameter. Floating-point monetary value.
varname
(required)- Input and output parameter. As input, the name of the variable that holds the displayable monetary string assigned on output.
Example
<!-- Get the item price, which is stored as (price * quantity); and where cartlist_price and cartlist_quantity are the two String Variables that have the Values retrieved appropriately--> <% ics.SetVar("calcout",new String(cartlist_price/cartlist_quantity)); %><!-- Convert the above item price to currency. --> <currency:create name="curval"/> <currency:getcurrency name="curval" value="calcout"
varname="curout"/>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.