0

Why np.inf > 1e999 returns False?

I'm using Python 3.7

1 Answer 1

3

The notation 1e999 results in a float -- and this float is larger than the maximum possible value. So 1e999 becomes inf.

A quick test in Ipython:

In [11]: 1e999 == np.inf Out[11]: True 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.