logoalt Hacker News

zahlmanyesterday at 9:07 PM1 replyview on HN

Floating-point infinity is actually really useful in Python because you can easily and efficiently compare it to Python's arbitrary-size integers.


Replies

cogman10yesterday at 9:17 PM

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.

show 1 reply