DEV Community

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

Collapse
 
jonosellier profile image
jonosellier

FYI, Math.round() will round the number, not chop off the decimal. Use floor or better yet |0 to drop the decimal