What is floats in python | Sololearn: Learn to code for FREE!


What is floats in python

7/5/2019 7:27:41 AM

Kanak Rathi

263 Answers

New Answer


Kanak Rathi A number with decimal point in it. 1 - integer 1.23 - float


Floats are represent real numbers and are written with a decimal point dividing the integer and fractional parts.


Any real number having decimal point is float in python. Ex. 1 - integer But 1.0 - float


A variables like: P=3.14(float) -27.2789(float) 0.0(float) 1.0(float)


Floats are the decimal numbers


" 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."


float is a virus that attack any operation like multiplication division... he will kill them all


Please use the search bar before posting to avoid duplicates. https://www.sololearn.com/discuss/1837465/?ref=app https://www.sololearn.com/discuss/944187?ref=app https://www.sololearn.com/discuss/1262636/?ref=app


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.


A number which is not an integer. It has a decimal point


If you want to divide an output just use the float variable.


The output with decimal points are known as floats 2.0 5.5 9.9


A float is a number with a decimal point in it. For example… 1.2 1.0 6.4 and so on


Any real number having decimal point is float in python. Example: 1 = integer 1.0 = float


Any number in a decimal from is called float in python programming language Example: 1.0, 2.0 ,3.0, 3.1, 3.2 and many more like this type of number's


A number with decimal point.


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 हैं)


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).


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?


A number with a decimal point . Example 14.25 - float