0

When to use double and when to use float?

3rd Sep 2016, 5:19 AM
anuja
anuja - avatar
2 Answers
+ 2
you have to use double when you need more space to assign a value for this variable...float is used when we need more simple floating pointing numbers... hope that this helps ;-)
3rd Sep 2016, 7:43 AM
Carlos Augusto Silva Gurgel
Carlos Augusto Silva Gurgel - avatar
0
double is used when no. is in fraction...float also can be use to represent fractional value
3rd Sep 2016, 3:57 PM
Piyush Singh
Piyush Singh - avatar