JRS: In article <Xn********************@194.109.133.29>, dated Tue, 10
May 2005 08:19:18, seen in news:comp.lang.javascript, Evertjan.
<ex**************@interxnl.net> posted :
function euroformat(x){
return "€ " + x.toFixed(2);
};
For browsers that implement € and toFixed. And the FAQ says that
some toFixed is buggy.
€ gives a Euro sign on at least some systems that do not have
€ .
I wonder whether UniCode has a place reserved for the specifically-US
dollar? All sorts of people use \u0024; .
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.