parseFloat is a global JavaScript method which parses an argument, and returns a number.
JavaScript's parseFloat
attempts to parse the first argument, and returns a number. If the argument cannot be parsed, parseFloat
returns NaN
.
A comparison of number conversion methods can be found at this answer.