Dearest math nerds. I want to round, or floor, numbers to even numbers. So 1 becomes 0, 2 stays 2, 3 becomes 2, etc. How do I do that? And to make it even worse: In JavaScript.
Dearest math nerds. I want to round, or floor, numbers to even numbers. So 1 becomes 0, 2 stays 2, 3 becomes 2, etc. How do I do that? And to make it even worse: In JavaScript.
If you have a fediverse account, you can quote this note from your own instance. Search https://social.vasilis.nl/users/vasilis/statuses/114251037528648069 on your instance and quote it. (Note that quoting is not supported in Mastodon.)