Answer 2 out of 2
 
5 helpful answers
A:

robertc is very right. In case you may also be looking for String-to-float: that is not as automatic. You can use the globally defined function parseFloat(f). so parseFloat("0003.1415") would result in 3.1415. ParseFloat (and also parseInt) will skip any leading non-number characters btw, such as US$ e.g.

Posted 2 years ago
blonkm was invited by Yedda to answer this question.

Helpful?(2)
Rated as Best Answer
 
Comment About This Answer (or add your own answer)

Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2009, Yedda Inc. and respective copyright owners