Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Here's the code to generate the object and check that it works: https://gist.github.com/penteract/8957d7d18a60f021d8d74ef2f4...


This is beautiful! Simple and effective.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: