Float or Double | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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