Hacker News new | ask | show | jobs
by hohenheim 2037 days ago
I wondering why Ruby's binary search uses infinity as the max to kick off the search, instead of max float.
1 comments

The programmer wrote 'found_value = (0..Float::INFINITY).bsearch do'...