[android-beginners] Re: string to double

2010-05-26 Thread niko20
Hi, Just do this Double mynewdouble = new Double(str); There are built int objects that can take string as a constructor init argument. The bad part is now you have a heavyweight object, but it works fine. If you want then you can put it into a normal double: double mydouble = mynewdouble;

Re: [android-beginners] Re: string to double

2010-05-26 Thread Faust Nijhuis
2010/5/26 niko20 nikolatesl...@yahoo.com Hi, Just do this Double mynewdouble = new Double(str); There are built int objects that can take string as a constructor init argument. The bad part is now you have a heavyweight object, but it works fine. If you want then you can put it into a

[android-beginners] Re: string to double

2010-05-26 Thread niko20
Ah, I missed that you were saying there was a comma in the decimal Yes, you have to replace it, no way around that. I ran into that same thing as well. Android doesnt handle that correctly automatically -niko On May 26, 11:11 am, Faust Nijhuis faustnijh...@gmail.com wrote: 2010/5/26 niko20