+ 1
how to write infinity
hello I would like to create a code with infinity. the only problem is that I don't know how to write infinity and even after searching on the internet nothing can help me . If you can help me, I will be happy to read your message.
1 Resposta
+ 7
It depends how you want to use the value.
For math comparisons:
float('inf')
For symbolic algebra:
sympy.oo
https://sololearn.com/compiler-playground/czdp1BxsfWA4/?ref=app