What is floats in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
5th Jul 2019, 7:27 AM
Kanak Rathi
Kanak Rathi - avatar
255 Answers
+ 67
Floats are represent real numbers and are written with a decimal point dividing the integer and fractional parts.
5th Jul 2019, 8:00 AM
Max Andal
Max Andal - avatar
+ 41
Any real number having decimal point is float in python. Ex. 1 - integer But 1.0 - float
16th Mar 2021, 9:20 PM
Kumail Rizvi
Kumail Rizvi - avatar
+ 28
A variables like: P=3.14(float) -27.2789(float) 0.0(float) 1.0(float)
21st Mar 2021, 9:22 AM
Steffen Kulvanowskii
Steffen Kulvanowskii - avatar
+ 15
Floats are the decimal numbers
21st Mar 2021, 2:48 PM
Iluminous Gaming
Iluminous Gaming - avatar
+ 9
" Floats are used in Python to represent numbers that aren't integers (whole numbers). Some examples of numbers that are represented as floats are 0.5 and -7.8237591. They can be created directly by entering a number with a decimal point, or by using operations such as division on integers."
5th Sep 2021, 10:11 AM
Zahra
Zahra - avatar
+ 5
float is a virus that attack any operation like multiplication division... he will kill them all
2nd Feb 2022, 4:41 AM
yonas
yonas - avatar
+ 4
In Python flots represent the number are in decimal point and the number aren't integers. For Example: 7.0, 0.5 etc. These are flots.
2nd May 2021, 7:04 AM
Eldarion
Eldarion - avatar
+ 3
A number which is not an integer. It has a decimal point
22nd Mar 2021, 7:19 AM
Alex Hadoe
+ 3
If you want to divide an output just use the float variable.
2nd May 2021, 1:22 PM
Marlene Rubio
Marlene Rubio - avatar
+ 3
The output with decimal points are known as floats 2.0 5.5 9.9
2nd Jul 2021, 3:46 PM
Nanda kishore Yadav
Nanda kishore Yadav - avatar
+ 3
A float is a number with a decimal point in it. For example… 1.2 1.0 6.4 and so on
7th Jul 2021, 2:24 AM
Ninny & Emily
+ 3
Any real number having decimal point is float in python. Example: 1 = integer 1.0 = float
16th Aug 2021, 4:16 PM
Md Shihab Shahriar Rashu
Md Shihab Shahriar Rashu - avatar
+ 3
A number with decimal point.
28th Oct 2021, 7:15 AM
desai sruthi
desai sruthi - avatar
+ 3
Float is a data type in python which contains decimal in a sequence of number , as python is dynamically typed language (because it automatically reads the data type and act accordingly ) so there is no need to explicitly declare data type while coding float example - 1.555 (Hindi- yeh voh number hote hai jisme dashamlava ya decimal ka prayog kiya jata हैं)
29th Dec 2021, 4:58 AM
Anshul Verma
Anshul Verma - avatar
+ 3
Floats in a python is an integer with decimal Point or we also get float from performing some operations with float and we can get it from only integers also such that when we divides two integers using / (slash).
20th Feb 2022, 5:00 AM
Aman Aryan
Aman Aryan - avatar
+ 2
HI? :) Concerning 8 END OF MODULE "You are offered a choice of either $1.000.000 or $0.01 (one penny) doubled every day for 30 days (the resulting amount is doubled every day). Task: Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount." Could anyone clarify?
23rd Mar 2021, 12:11 AM
Ivan Zanoth
Ivan Zanoth - avatar
+ 2
A number with a decimal point . Example 14.25 - float
15th May 2021, 4:53 AM
Hitakshi Kathiriya
Hitakshi Kathiriya - avatar
+ 2
Son números decimales que usan el punto como decimal
25th Aug 2021, 9:17 PM
Erick Arom Sandoval Litano
Erick Arom Sandoval Litano - avatar
+ 2
What is keyword?
31st Aug 2021, 10:35 AM
Shakti Gupta
Shakti Gupta - avatar