Link to home
Start Free TrialLog in
Avatar of feup
feup

asked on

String to Float (Very important)

How can I convet a String to a float?

ASKER CERTIFIED SOLUTION
Avatar of omok
omok

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of diakov
diakov

Just a remark. Since you say 'important' you also have to put the suggested expression in a try ... catch block to process possible conversion exceptions. Also Float provides some means for testing for the special float numbers like infinity, nan, etc.

Cheers.
Avatar of feup

ASKER

Thank you very much. You just helped me finishing my project in the university.

Thanx