3 ms·
parseInt() and parseFloat() are made for strings, not for numbers. I think you are looking for one of these: Math.round() Math.ceil() Math.floor()
by jannes 9y ago
parseInt() and parseFloat() are made for strings, not for numbers. I think you are looking for one of these:
Math.round() Math.ceil() Math.floor()