Python Numbers-Int, float, complex
Integers, floating-point numbers and complex numbers are supported by python.
Integer:
Zero, negative and positive whole numbers without decimal is included in integers. It can be of unlimited length
Integers in Python |
Floating-point numbers:
Numbers with decimal point is called as floating-point numbers. It can be positive or negative. Scientific numbers are also float numbers. E is the power of 10
Floating-point Numbers |
Complex numbers:
Complex are written in the form x+yj where ‘x’ is the real part and ‘y’ is the imaginary part.
Complex numbers in Python |
0 Comments