Float or Double | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Float or Double

Considering the difficulty in including different variable types together in a function, is there a disadvantage to declaring all floats as doubles other than the increase memory useage?

25th Nov 2018, 10:01 PM
LEAP69
LEAP69 - avatar
1 Answer
+ 1
Doubles have more precision than floats, so I think this incurs a higher processing time than floats
25th Nov 2018, 10:34 PM
Dlite
Dlite - avatar