r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
1
u/CuAnnan Jun 14 '25
Integer.parse doesn't round.
That would be what Math.round is for.
It parses a string to an integer.