Just a question that I'm kind of confused about
So I was messing around with float('inf')
and kind of wondering what it is used for.
Also I noticed that if I add -inf + inf
i get nan
is that the same as Zero or not.
I'm confused about what the uses of these two values are.
Also when I do nan - inf
I don't get -inf
I get nan
I'm sure it's all pretty simple but I stumbled upon them and didn't know what they do.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…