According to this website:
parseInt is occasionally used as a means of turning a floating point number into an integer. It is very ill suited to that task because if its argument is of numeric type it will first be converted into a string and then parsed as a number…
For rounding numbers to integers one of Math.round, Math.ceil and Math.floor are preferable…