Coming back to where we live but that is the data types in Python integers and floating point numbers
are separated by decimal point so one is an integer.
And one dot or is o floating point number integers can be of any length.
Whereas floating by number is accurate only up to 15 decimal places.
That might be a requirement that we need to convert an integer data type to a floating point data type
or rice versa.
So this can be done using the built in functions float an integer in in i n d in Python.
So let's see this in the python shell python shell.
That is the ideally environment we will convert a floating point number into an integer and add the
python prompt.
I'm going to enter the function built in function i n d open parenthesis let's give the number
to spade emphasis and hit enter your floating point number it is converted to an integer knowledge convert
an integer into a floating point number hit enter.
So this is how the two functions work and we can perform addition subtraction multiplication division
between same data types or different data types and these operations convert an integer to a floating
point number automatically if one of the opera and is a float so let's check this let add two integers
three plus four and then hit in dust to see the output it's seven now let and three plus four dot o
and then hit into so if one of the Opera end is a floating point number the output would be a floor
likewise Zo multiply 0 two numbers by using the symbol start and then and then do some more do by number
so as we have discussed the floating point number is accurate up to the first 15 decimal we can also
perform exponential calculation on numbers say for example you want to calculate or two to the power
of two or two times two for that you use the symbol stop start for multiplication you use a single star
for exponential calculation to the power of it all you use two stars.
So I'm going to say two to the power at all to two to the power of three.
Similarly you can also do divisions say fifty six divided by seven this is eight point zero knowledge
so twenty four divided by five now let's go and add a floating point number twenty three point six seven
seven divided by C eight so this also gives a floating by number.