PDA

View Full Version : New money renderer for Euro money



alaindeseine
21 Mar 2007, 2:16 PM
Hi,

it will be nice if you add a new money rendrer in format.js for implemanting the euro money. I suggest something like that :

euroMoney : function(v){
v = (Math.round((v-0)*100))/100;
v = (v == Math.floor(v)) ? v + ".00" : ((v*10 == Math.floor(v*10)) ? v + "0" : v);
return v + " €";
},

mdissel
22 Mar 2007, 2:22 AM
I think it's better to implement some kind of regional object, like the current Date object.. We can add the same settings as in the Windows regional settings and create different regional files for every country.

Thanks

Marco