+ 1

What is the difference between int and float

5th Aug 2016, 2:01 PM
Hemant Jaiswal
Hemant Jaiswal - avatar
3 Respostas
+ 2
int save integer type value such as 1145 and float save floating point values such as 1145.89
5th Aug 2016, 5:28 PM
Toffiq Saddique
+ 1
Int(integer) is a number without any decimal(e.g 25) and float is floating number which has a decimal with it(e.g 45.25)
5th Aug 2016, 2:12 PM
Gurvir Singh Mavi
Gurvir Singh Mavi - avatar
0
int(datatye) is a number without any decimal and float is a datatype which takes number having decimal part eg 22.1234567 and decimal can take value of 7 digits after decimal
5th Aug 2016, 7:35 PM
sachin tomar
sachin tomar - avatar