Trending technologies

#AWS #Azure #Blockchain #IOT #machine learning #Virtual Reality #Analytics #Business Intelligence



Integers, floating point numbers and complex numbers comes under numbers category.

Python supports four different numerical types.

  1. Integer.
  2. Float.
  3. Complex.
  4. Long.

Int : Int, or integer, unlimited length, It a whole number, positive or negative, without decimals.


Float : A float is a floating-point number, which means it is a number that has a decimal place. Floats are used when more precision is needed.


Complex: A complex number is a number that can be expressed in the form a + bi, where a and b are real numbers, and i is a solution of the equation x2 = −1. Because no real number satisfies this equation, i is called an imaginary number. For the complex number a + bi, a is called the real part, and b is called the imaginary part.


Long : The long data type is a 64-bit two’s complement integer. The signed long has a minimum value of -263 and a maximum value of 263-1

Numbers in Python

Working with Numbers

Working with Numbers

Number Conversion in python

error: Content is protected !!