What is parseFloat() in JavaScript ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 5

What is parseFloat() in JavaScript ?

23rd Feb 2017, 10:35 AM
$#!^!
$#!^! - avatar
13 Respostas
+ 6
TheĀ parseFloat() function parses a string and returns a floating point number. This function determines if the first character in the specified string is a number. If it is, it parses the string until it reaches the end of the number, and returns the number as a number, not as a string.
23rd Feb 2017, 10:38 AM
$#!^!
$#!^! - avatar
+ 6
ex. parseFloat(10) // ans is 10 parseFloat(ff2)// NaN becoz character is not converted into number. parseFloat (34 45) // ans is 34
23rd Feb 2017, 10:44 AM
$#!^!
$#!^! - avatar
+ 6
@sona i discovered ans myself heheheh i that feels lik a boss... i always get that wrong beep in this question...šŸ˜…šŸ˜Ž now i will beat the beep hehehe
23rd Feb 2017, 10:47 AM
$#!^!
$#!^! - avatar
+ 5
šŸ˜šŸ˜šŸ˜šŸ˜
23rd Feb 2017, 10:46 AM
sonali
sonali - avatar
+ 2
I got one teacher here *respect* _ /\_
23rd Feb 2017, 11:18 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
nycooo
23rd Feb 2017, 5:52 PM
Tarun Verma
Tarun Verma - avatar
+ 1
@raj kumar i solve my ques myself bcoz i know that people of ur kind just gonna waste my time in this Q&A section...
24th Feb 2017, 12:05 PM
$#!^!
$#!^! - avatar
+ 1
haha...you reply is enough to make my temper higher but I will control. take it easy girl..I just said in fun way (can you see :p smiley there?) , enough if you have done for badge ..nothing wrong, I may do same some day :p
24th Feb 2017, 12:08 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
"my kind" ?!! girl behave nice..please. wasting time? ..umm..haha..fake laug help me to control my anger. if you know that then is it necessary to announce it to world? :p (reply since you don't have time to waste: it is good to share knowledge with others) exactly. .thats why I called you "my teacher" have open mind, be cool, try to accept criticism..people are not bad if you're good with them. sukriya :)
24th Feb 2017, 12:14 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
you did this Q&A by yourself for self-learner badge na? I got you :p
24th Feb 2017, 11:31 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
*replace enough with even can't edit in app
24th Feb 2017, 12:10 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
you were secretly getting my appreciation for your knowledge but now you lost it all because of your behaviour.
24th Feb 2017, 12:21 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
so lesson learnt :p : try to be good as a person first, before trying to get succeed in other things of life. - Raj Kumar Chauhan :p bhadass nikal rha ye sb likh ke :p
24th Feb 2017, 12:26 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar