3.2.0

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
November 17,
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
November 18,
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!
November 23,

This topic is archived.

See also:


Back to support forum