“Infinity Python” Code-Antworten

Python Infinite -Wert

test = float("inf")

In Python 3.5, you can do:

import math
test = math.inf
Ugliest Unicorn

Unendlichkeit in Python

# 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)
Aggressive Addax

Infinity Python

positive_infinity = float('inf') 
negative_infinity = float('-inf') 
Successful Sandpiper

Python setzte negative Unendlichkeit

# Define Negative infinity number
ntive_inf = float('-inf')
print('Negative Infinity: ',ntive_inf)
Dentedghost

Infinity Python

math.inf
Hungry Hamster

unendlich in Python

not possible in a numerical value sorry 
Albert Einstein

Ähnliche Antworten wie “Infinity Python”

Fragen ähnlich wie “Infinity Python”

Weitere verwandte Antworten zu “Infinity Python” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen