Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I display a British Pound Sign in Sir Coldfusion

Status
Not open for further replies.

pacastle

Technical User
Oct 7, 2001
1
GB
In a web article of coldfusion shopping cart, Webmonkey's Coldfusion Shopping Cart makes use of dollarformat but when you type poundformat or stirlingformat is produces an error.
 
For the pound sign to display you need to escape it, so type two of them in a row (##).
 
To display Pound sterling sign use £ escape characters Sylvano
dsylvano@hotmail.com

"every and each day when I learn something new is a small victory..."
 
To display Pound sterling sign use £ (&&##163;)escape characters Sylvano
dsylvano@hotmail.com

"every and each day when I learn something new is a small victory..."
 
i am not very good with teckumseh but you are out to type "amper sign", "pound sign", "163", ";" that will display £ sign Sylvano
dsylvano@hotmail.com

"every and each day when I learn something new is a small victory..."
 
Or you can use LSCurrencyFormat(); the function will return a currency value using the locale convention. Default value is "local."

Syntax
LSCurrencyFormat(number [, type ])

number
The currency value.

type
Currency type. Valid arguments are:

none -- (For example, 10.00)
local -- (Default. For example, $10.00)
international -- (For example, USD10.00)

English (UK)
Local: £100,000.00
International: GBP100,000.00
None: 100,000.00
Sylvano
dsylvano@hotmail.com

"every and each day when I learn something new is a small victory..."
 
I've used the Webmonkey cart - and had the same question. This is what I did and it works...... use numberformat and add the pound sign before.

<td align=right><font face=&quot;arial&quot; size=2>&pound;#numberformat(subtotal)#</font></td>

Liark
mark@liark.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top