Valeur infinie python
test = float("inf")
In Python 3.5, you can do:
import math
test = math.inf
Ugliest Unicorn
test = float("inf")
In Python 3.5, you can do:
import math
test = math.inf
# Defining a positive infinite integer
positive_infnity = float('inf')
print('Positive Infinity: ', positive_infnity)
# Defining a negative infinite integer
negative_infnity = float('-inf')
print('Negative Infinity: ', negative_infnity)
# Define Negative infinity number
ntive_inf = float('-inf')
print('Negative Infinity: ',ntive_inf)
float('-inf')
float ('inf')
test = float("inf")