logoalt Hacker News

cogman10yesterday at 9:17 PM1 replyview on HN

For what purpose? When does this come up?

I can also compare infinity to Java's BigDecimal values but I fail to see what I'd want to or need to.


Replies

zahlmanyesterday at 11:28 PM

Having data-driven code to check if a value is in bounds, and sometimes wanting the bounds to be open on either or both sides.

Also: creating an efficient sort key.