+ 1
What's a float
Isn't a float a massive number with a decimal? if it's not a long number, then why did they make a double?
3 Antworten
+ 11
double: 64 bit - default choice for decimals
float: 32 bit - less precision, use it only if you need to save memory space.
See
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
+ 10
You're welcome ^^
+ 1
Thanks!