+ 1

Code for making own atof function?

How to Convert "1234.21" to 1234.21

8th Nov 2018, 6:34 PM
Ved Gautam
Ved Gautam - avatar
2 Answers
+ 16
float result = Float.parseFloat(String value); //in java //I searched about atof() function , it converts String type to float type .
8th Nov 2018, 6:46 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
Hello, Welcome to SoloLearn! 😊 Can you be more specific!? https://www.sololearn.com/post/10362/? Please read our guidelines: https://www.sololearn.com/discuss/1316935/?ref=app An useful code for any new user here!;) https://code.sololearn.com/WvG0MJq2dQ6y/
8th Nov 2018, 6:38 PM
Danijel Ivanović
Danijel Ivanović - avatar