Forum Discussion
JoeFrancis
4 months agoCommunity Member
parseFloat() is more lenient than Number() because it ignores trailing invalid characters, which would cause Number() to return NaN.
parseFloat() the following
3.14
"3.14"
" 3.14 "
"314e-2"
"0.0314E+2"
"3.14some non-digit characters"
All return 3.14