Converting floating-point numbers to integers while preserving order | Dark Hacker News