DEV Community

Discussion on: You should stop using `parseInt()`

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Why not compare to parseFloat?

Anyway, parseInt forgivingness is so bad.

Collapse
 
darkmavis1980 profile image
Alessio Michelini • Edited

parseFloat is even worst than parseInt if you just want to convert a string to a number