1 00:00:00,120 --> 00:00:06,960 Coming back to where we live but that is the data types in Python integers and floating point numbers 2 00:00:07,080 --> 00:00:13,190 are separated by decimal point so one is an integer. 3 00:00:13,530 --> 00:00:20,980 And one dot or is o floating point number integers can be of any length. 4 00:00:21,480 --> 00:00:27,920 Whereas floating by number is accurate only up to 15 decimal places. 5 00:00:27,930 --> 00:00:36,300 That might be a requirement that we need to convert an integer data type to a floating point data type 6 00:00:36,440 --> 00:00:37,920 or rice versa. 7 00:00:38,040 --> 00:00:46,520 So this can be done using the built in functions float an integer in in i n d in Python. 8 00:00:46,890 --> 00:00:51,360 So let's see this in the python shell python shell. 9 00:00:51,360 --> 00:01:00,240 That is the ideally environment we will convert a floating point number into an integer and add the 10 00:01:00,240 --> 00:01:01,800 python prompt. 11 00:01:01,830 --> 00:01:09,720 I'm going to enter the function built in function i n d open parenthesis let's give the number 12 00:01:12,600 --> 00:01:22,940 to spade emphasis and hit enter your floating point number it is converted to an integer knowledge convert 13 00:01:23,360 --> 00:01:28,630 an integer into a floating point number hit enter. 14 00:01:28,680 --> 00:01:37,710 So this is how the two functions work and we can perform addition subtraction multiplication division 15 00:01:38,100 --> 00:01:46,170 between same data types or different data types and these operations convert an integer to a floating 16 00:01:46,170 --> 00:01:57,860 point number automatically if one of the opera and is a float so let's check this let add two integers 17 00:01:58,760 --> 00:02:11,640 three plus four and then hit in dust to see the output it's seven now let and three plus four dot o 18 00:02:13,060 --> 00:02:21,380 and then hit into so if one of the Opera end is a floating point number the output would be a floor 19 00:02:23,770 --> 00:02:38,390 likewise Zo multiply 0 two numbers by using the symbol start and then and then do some more do by number 20 00:02:39,510 --> 00:02:47,250 so as we have discussed the floating point number is accurate up to the first 15 decimal we can also 21 00:02:47,250 --> 00:02:54,900 perform exponential calculation on numbers say for example you want to calculate or two to the power 22 00:02:54,900 --> 00:03:08,490 of two or two times two for that you use the symbol stop start for multiplication you use a single star 23 00:03:08,940 --> 00:03:15,370 for exponential calculation to the power of it all you use two stars. 24 00:03:15,900 --> 00:03:22,840 So I'm going to say two to the power at all to two to the power of three. 25 00:03:23,010 --> 00:03:33,130 Similarly you can also do divisions say fifty six divided by seven this is eight point zero knowledge 26 00:03:33,190 --> 00:03:44,400 so twenty four divided by five now let's go and add a floating point number twenty three point six seven 27 00:03:44,400 --> 00:03:52,070 seven divided by C eight so this also gives a floating by number.