Najmenší možný počet v Pythone

Príklady kódu

0
0

ako tlačiť najmenšie číslo v Pythone

# creating empty list
lis = []

# user enters the number of elements to put in list
count = int(input('How many numbers? '))

# iterating till count to append all input elements in list
for n in range(count):
    number = int(input('Enter number: '))
    lis.append(number)

# displaying smallest element
print("Smallest element of the list is :", min(lis))
0
0

najmenší možný počet v Pythone

The smallest possible number in python (not underflow to 0)
is the smallest possible subnormal number.

# L is the lowerbound exponent given by IEEE754 double precision.
L_sub < (machine_epsilon * 2**L)  =  (2**-52) * (2**-1022) = 2**-1074

Thus, smallest_number = 2*-1074 => 5e-324

V iných jazykoch

Táto stránka je v iných jazykoch

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................