Python Float and Complex Numbers (Theory of Python) (Python Tutorial)

preview_player
Показать описание
Let's review the number system in math. Note that we can never represent irrational numbers in binary. We instead use floats to roughly estimate rational numbers. IEEE 754 is the standard definition for floats. Python float literals need a decimal point or e/E (or both). Complex numbers can be formed with the imaginary literal.

Thank you!
Рекомендации по теме
Комментарии
Автор

u are doing great work by making tutorial vedio playlist thanxxx for this from bottom of my heart

vrushabhpatil
Автор

I’ve played around the interpreter and found out that the scientific notation only returns a float. I tried to convert it into int by using int(). It worked but not for very large numbers, such as 1e100, it breaks down from 1e23 and onwards. Why is it so ? Is it because I’m converting from float to int ?

On the other hand, 10**100 seems to be working fine.

eracless
Автор

so it's different than C where Float is "Float" but you can import IEEE 754 if needed. Or i Remember bad ?

Fine_Mouche
welcome to shbcf.ru