Feb 09, 2010, 12:45 PM
[CLOSED] [1.0] Number format in Grid Column
We use the renderer to format numbers in grid columns i.e.
Ext.util.Format.number(value, '0,000.0000')
Now they want a specific format for 6 decimals but they only want to show the decimals that are not 0. example:
Value Display
1.000000 1
1.540000 1.5
1.234567 1.234567
What would be the best way to accomplish that?
Thanks~
Ext.util.Format.number(value, '0,000.0000')
Now they want a specific format for 6 decimals but they only want to show the decimals that are not 0. example:
Value Display
1.000000 1
1.540000 1.5
1.234567 1.234567
What would be the best way to accomplish that?
Thanks~