Re: [android-beginners] string to double

2010-05-25 Thread Faust Nijhuis
2010/5/26 TreKing > On Tue, May 25, 2010 at 3:22 PM, Faust Nijhuis wrote: > >> How do I transform a string with comma to a string with point. > > > By taking 2 seconds to look at the documentation for String. Your answer is > right there. Just try looking. You mean the replace function? With

Re: [android-beginners] string to double

2010-05-25 Thread TreKing
On Tue, May 25, 2010 at 3:22 PM, Faust Nijhuis wrote: > How do I transform a string with comma to a string with point. By taking 2 seconds to look at the documentation for String. Your answer is right there. Just try looking. -

[android-beginners] string to double

2010-05-25 Thread Faust Nijhuis
Hello, Is there an function to change an string with a comma to a double. example code; stripline1.Z0 = "123.45" (with point) DecimalFormat df = new DecimalFormat("#.##"); strip_Z0.setText(df.format(stripline1.Z0)); The value in the textEdit entry will be with a comma or point, depending on th