1000's separator in tooltip [message #793708] |
Wed, 08 February 2012 13:09 |
nlajka - Messages: 61 Registered: April 2011 |
Member |
|
|
Hi,
I am adding a float value into tooltip for a text (row+"-"+row[TotalSaleValue"]. Is there a way to configure row[TotalSaleValue" as a number with no decimals and with 1000's separator?
Thanks.
P.S. know that toFixed() would cut off decimals, but how to make a big float (ex. 123456789.00) to be presented as 123,456,789 in tooltip?
[Updated on: Wed, 08 February 2012 14:03] Report message to a moderator
|
|
|
|
Re: 1000's separator in tooltip [message #793909 is a reply to message #793885] |
Wed, 08 February 2012 18:33 |
|
Try:
importPackage(Packages.java.text);
formatter = new DecimalFormat("###,##0");
this.helpText = "my total "+
formatter.format(parseFloat(this.getValue()));
Jason
On 2/8/2012 1:00 PM, nlajka Mising name wrote:
> Any direction?
|
|
|
Powered by
FUDForum. Page generated in 1.03487 seconds