3 ms·
I didn't have a formula, just a Javascript object with 4096 keys. You could try to use a formula, but the rounding would make it quite blurry, so an "exact" ans
by penteract 3y ago
I didn't have a formula, just a Javascript object with 4096 keys. You could try to use a formula, but the rounding would make it quite blurry, so an "exact" answer wouldn't necessarily be right.
- penteract 3y agoHere's the code to generate the object and check that it works: https://gist.github.com/penteract/8957d7d18a60f021d8d74ef2f42d4d03 https://gist.github.com/penteract/8957d7d18a60f021d8d74ef2f4...
- CobrastanJorji 3y agoThis is beautiful! Simple and effective.