Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lifthrasiir
on Nov 27, 2020
|
parent
|
context
|
favorite
| on:
1.5 is the midpoint between 0 and infinity in Ruby
double_as_int64 as defined in the linked source code does take care of the sign so that double_as_int64(x) == -double_as_int64(-x). This is also important for the negative zero case.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: