I found this accepted answer which, despite being accepted, is wrong. I won't trouble you with the boring JS part, but the ~~
operator acts like a truncate function, not a floor, which may lead to people reading the answer and misunderstanding what ~~
really does, possibly inducing bugs in their algorithms (for negative numbers).
There is a comment pointing out that mistake but is buried under a lot of other comments.
I have read another question in the meta SO (Answers which are wrong), but the answer is old, and the author seems inactive, and will likely not edit their answer.
Should I edit the answer with the correct behavior (since people rarely reads the comments), or leave it as is?