Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2007, 07:52 AM
Member
 
Join Date: Nov 2007
Posts: 2
Rep Power: 0
miss_dot is on a distinguished road
Default convert string to float
hello.. i'm actually doing a calculation for mobile aplication using netbeans.. i got some problem when i'm trying to convert string to float.. cn anybody tell me? actually.. i can just convert string into integer using Integer.parseInt .. but i don't really know why i couldn't use Double.parseDouble or Float.parseFloat in netbeans.. i though that syntax is exist isn't it? hm.. does anybody got any suggestion for me in order to return string value as float or double?

i'm actually do a coding like this--

cobz = Integer.parseInt(textfield.getString());

because this is the only way for me to retrieve the 'input' form user in the text field. so i need to convert that 'string; into 'float' or 'double' to complete my calculation coding; not really by convert into integer.. but i really got a problem with this.. so please anyone help me...

-thanks guys-

Last edited by miss_dot; 11-14-2007 at 08:03 AM.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-14-2007, 11:26 PM
Member
 
Join Date: Nov 2007
Posts: 2
Rep Power: 0
miss_dot is on a distinguished road
Default
owhhh.. no one can help mee???? aaaa..i'm donee~~ (T.T)
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
String to Float durahman New To Java 2 02-12-2008 12:17 AM
Float to String mew New To Java 4 12-29-2007 05:08 PM
type mismatch: cannot convert from double to float bugger New To Java 2 11-16-2007 01:24 PM
How to convert a string into a BigInteger valery New To Java 1 08-06-2007 08:36 PM
Error with convert to Float cachi New To Java 1 08-06-2007 02:18 AM


All times are GMT +2. The time now is 03:31 AM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org