parse the input when itself is a number.

Use parseFloat function.