Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ryandrake
72 days ago
|
parent
|
context
|
favorite
| on:
It's OK to compare floating-points for equality
Yep, it was a long time ago but I think that's exactly what we ended up with, eventually: An int type of unit 2π/(int range). I believe we used unsigned because signed int overflow is undefined behavior.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: