[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: string to float, double, ..



Fadly wrote:

> hello all,
> i've made a simple numeric analysis programs ..
> but when it comes to converting string to float ..
> i get stuck .. :(( 
> i don't know  the method for converting string to float ..
> what i know is just string to integer conversion
> using Integer.parseInt()..

    float Float.parseFloat(String)
    Float Float.valueOf(String)
or
    double Double.parseDouble(String)
    Double Double.valueOf(String)
-- 
Edouard G. Parmelan
http://egp.free.fr


Reply to: