Yes, round is usually a safer choice, but in this case we had reasons to use floor and ceil, and thus had to deal with the issue.
I've added a section to the article with a more correct snapping function showing the issue more clearly (I hope).
I've added a section to the article with a more correct snapping function showing the issue more clearly (I hope).
No comments yet.