+ 2
what is float. simple example for understanding
10 Respuestas
+ 3
Any number with an Integer part+Fractional part is a float.
5 is an integer.
5.09 is a float (5-Integer & .09-Fractional)
+ 2
It's a decimal number (3.14 for example).
+ 2
hey there a float is a number with fractional or decimal part integer in any language does not include decimal or float value . A simple example
a =123 #is an IBT
but a= 123.00 is a float
more examples
4572.67867
763626.575
for much larger value of fraction we will use double instead of float
+ 1
thanks..for reply
+ 1
I think decimal number with (dot). Please correct me if I am wrong
+ 1
thanks guys
0
thanks Ambrose. I understood now.
0
float is like a value wit two digit like 4.0 and the two digit is 4 and .0
0
adding integer 5 + float 2.0 will give u float answer which is ==7
0
7.0