1. Computing & Technology

ParseFloat

From , former About.com Guide

Definition: The parseFloat built-in function extracts the number portion of whatever value is passed to it. One common use for this function is to convert numbers in text strings to numbers so that they can be used in numerical calculations. This is not a reserved word so you can declare your own variable or function called parseFloat but if you do then you will not be able to use the built-in function.
Examples:
var txt = '56.3'; var num = parseFloat(txt);

©2012 About.com. All rights reserved.

A part of The New York Times Company.