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 + " ";
},
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 + " ";
},