- 1
What is a float number 🙄
2 Respostas
+ 2
A type float variable is a real number. A real number can be a whole number or any fraction thereof.
But for purposes of this think of it as requiring a decimal.
Examples of type floats:
1.0
25.75
-23.5
In C a float can range from 1.2E-38 to 3.4E+38 in value.
You may also see double or long double which are much larger float types.
+ 5
Float (floating-point number) is data type which is used to store numerical data which contains decimal places.
Float is a number that has a decimal place.
A float has 7 decimal digits of precision and occupies 32 bits.
Examples of Float:
1.0
-12.6
3.14
These are float
>>> 1 is interger but 1.0 is float