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; -niko On May 25, 5:50 pm, Faust Nijhuis <faustnijh...@gmail.com> wrote: > 2010/5/26 TreKing <treking...@gmail.com> > > > On Tue, May 25, 2010 at 3:22 PM, Faust Nijhuis > > <faustnijh...@gmail.com>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 the format function a double will be translated to a string using the > Locale setting. > Is there a function who can do the other way around, from string to double > using the locale setting? > > > > > ------------------------------------------------------------------------------------------------- > > TreKing - Chicago transit tracking app for Android-powered devices > >http://sites.google.com/site/rezmobileapps/treking > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow at > >http://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en