, , Andy E, :
, parseFloat , , parseInt.
The size of the variable is an important factor in comparing performance, but it intalso floatoccupies the same memory space (4 bytes), so it really does not matter. Also parseFloat, it seems to do more computation and string analysis than parseInt.
source
share