Thanks Wouter,
I tried what suggested by you .But it works for double type only not for float type.
Output :
1.2345679E13
12345679020032
1.2345678912223123E13
12345678912223.123
1.2345679020032E13
12345679020032
Even if i try to convert first float to double then format obtained double value ,the result is same as formatting of float number.
Any other suggestions are welcomed
--Prabhat