Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hohenheim
on Nov 27, 2020
|
parent
|
context
|
favorite
| on:
1.5 is the midpoint between 0 and infinity in Ruby
I wondering why Ruby's binary search uses infinity as the max to kick off the search, instead of max float.
rm445
on Nov 27, 2020
[–]
The programmer wrote 'found_value = (0..Float::INFINITY).bsearch do'...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: