:: Forum >>

Formats.Number - no decimal places

I would like to display a number such as 250,000 just that way in a grid, with a thousands separator but no decimal place.

var formatNum70 = new AW.Formats.Number;

formatNum70.setTextFormat("#,###,###.");
==> this gives me 250,000,000.

formatNum70.setTextFormat("#,###,###.##");
==> this gives me 250000

Ideas welcome ... if this is something fixed in 2.6.1 I will gladly upgrade. Thanks!
beth
Saturday, November 17, 2012
I think it's allready corrected since the earlier 2.5.x subversions, you can check it online here:
http://www.activewidgets.com/aw.formats.number/
just click on <show example> , then change/correct the line to:
setTextFormat("#,###,###.");
and then <show me> button to see the resulting html text ( or any example you update )

HTH
Carlos
Sunday, November 18, 2012
Thank you Carlos! I can see it definitely works here. I am double-checking the version of AW that I'm using ... thanks for your reply!
Friday, November 23, 2012

This topic is archived.


Back to support forum

Forum search