+ 2

what is float. simple example for understanding

10th Sep 2016, 10:22 AM
chandru
10 Réponses
+ 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)
10th Sep 2016, 11:20 AM
Sayali
+ 2
It's a decimal number (3.14 for example).
10th Sep 2016, 10:36 AM
Zen
Zen - avatar
+ 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
10th Sep 2016, 5:24 PM
Kartik
+ 1
thanks..for reply
10th Sep 2016, 11:03 AM
chandru
+ 1
I think decimal number with (dot). Please correct me if I am wrong
10th Sep 2016, 11:04 AM
chandru
+ 1
thanks guys
10th Sep 2016, 11:40 AM
chandru
0
thanks Ambrose. I understood now.
11th Sep 2016, 1:19 AM
chandru
0
float is like a value wit two digit like 4.0 and the two digit is 4 and .0
6th Nov 2016, 3:38 PM
Oniovosa Hope
Oniovosa Hope - avatar
0
adding integer 5 + float 2.0 will give u float answer which is ==7
6th Nov 2016, 3:39 PM
Oniovosa Hope
Oniovosa Hope - avatar
0
7.0
6th Nov 2016, 3:39 PM
Oniovosa Hope
Oniovosa Hope - avatar