Sitemap
Pendurvenu

Pendurvenu

Numerical Data Types in Python

2 min readAug 17, 2026

Numeric is a first group in data types. In numeric there are 3 data types are there they are:-

  1. integer
  2. float
  3. complex

=>Integer:- Integer is a python data type by using which we can create any real numbers

integer is represented as int ()

  • ∞,-3,-2,-1,0,1,2,3,+∞

examples:-

#integer Interning :- Interning is a simple technique by using which python allocates a small memory called cache. this cache is used for checking purpose and in this cache/memory is used to store a range of values.

  • interning range value is -5 to 256
  • in this range value if data already exists they can reuse the same location ∞ number of times. the id address of the value will be the same
  • if the range is out of the interning the id address value will be change

example:

=>Float:- Float is python data type by using which we can create any decimal values.

Get Pendurvenu’s stories in your inbox

Join Medium for free to get updates from this writer.

float is represented as float()

1.2,6.7,8.9 we can create ∞ decimal values.

upto 16 decimal values the python engine will give the precise value after that the answer will be approximate value

example:-

=>Complex:-complex is also a python data type by using which we can create a combination of real & imaginary data whether it is positive data or negative data

complex is represented as complex()

example:- 14+2j

.Real Data: Real data represents the exact values int & float 14 is the real value

.Imaginary Data: Imaginary data represents the approximate value 2 and j is a mathematical symbol in complex whether it is upper case or lower case.

examples:-

--

--