I am formatting an Object which is a number into a comma pattern.
Eg the number is 12345678.
I apply comma pattern and format it to 123,45,678 using
DecimalFormat df = (DecimalFormat) nf;
itemValue = df.format(itemValue);
Now the itemValue is of type String.
I would like to convert it into a Number but still have the commas.
Is it possible? Any help.
I need it as a number as I export to excel and the column has to be all numbers so they can be 'SUM' ed.