What is the difference between parseInt(string) and Number(string) in JavaScript has been asked previously.
But the answers basically focused on the radix
and the ability of parseInt
to take a string like "123htg"
and turn it into 123
.
What I am asking here is if there is any big difference between the returns of Number(...)
and parseFloat(...)
when you pass it an actual number string with no radix at all.