Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2007, 09:52 AM
Member
 
Join Date: Nov 2007
Posts: 2
miss_dot is on a distinguished road
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 10:03 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-15-2007, 01:26 AM
Member
 
Join Date: Nov 2007
Posts: 2
miss_dot is on a distinguished road
owhhh.. no one can help mee???? aaaa..i'm donee~~ (T.T)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB 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 02:17 AM
Float to String mew New To Java 4 12-29-2007 07:08 PM
type mismatch: cannot convert from double to float bugger New To Java 2 11-16-2007 03:24 PM
How to convert a string into a BigInteger valery New To Java 1 08-06-2007 10:36 PM
Error with convert to Float cachi New To Java 1 08-06-2007 04:18 AM


All times are GMT +3. The time now is 12:18 AM.


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