> > hi, i want to know how to convert a doble value like this 98.34 to
> > string 00009834 or 9.34 to 00000934 thanks a lot !!!!!
>
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Double.html#toString()
thank you , but i read link and i tried to use NumberFormat , but i
can't get an example how to use exactly the way i need...
Florian Huebner - 04 Feb 2008 14:50 GMT
>>> hi, i want to know how to convert a doble value like this 98.34 to
>>> string 00009834 or 9.34 to 00000934 thanks a lot !!!!!
>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Double.html#toString()
>
> thank you , but i read link and i tried to use NumberFormat , but i
> can't get an example how to use exactly the way i need...
In that case I would just replace the "." with and empty string, count
the remaining letters and add as many zeros as you need.
John W. Kennedy - 05 Feb 2008 02:21 GMT
>>> hi, i want to know how to convert a doble value like this 98.34 to
>>> string 00009834 or 9.34 to 00000934 thanks a lot !!!!!
>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Double.html#toString()
>
> thank you , but i read link and i tried to use NumberFormat , but i
> can't get an example how to use exactly the way i need...
final DecimalFormat df = new DecimalFormat("00000000");
df.setMultiplier(100);

Signature
John W. Kennedy
If Bill Gates believes in "intelligent design", why can't he apply it to
Windows?