r/shittyprogramming • u/sheeve_boi • Oct 10 '19
My solution to the JavaScript floating point issue. Now with redundant functions!
191
Upvotes
r/shittyprogramming • u/sheeve_boi • Oct 10 '19
40
u/reinaldo866 Oct 10 '19
JSON.parse is not even assigned to a variable, whatthe fuck
25
u/kykoliko Oct 10 '19
I hate everything about this. Well played.
11
u/[deleted] Oct 10 '19
3 semicolons in the whole thing. Were they mistakes? Haha!
21
u/[deleted] Oct 10 '19
Why did you make that a function
7
u/dippocrite Oct 10 '19
.toFixed(1) is underkill anyways
1
u/[deleted] Oct 10 '19
Lol, I love it