+ 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?

17th May 2017, 3:11 PM
Anarjay / \
Anarjay / \ - avatar
4 Answers
+ 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
17th May 2017, 6:51 PM
Tashi N
Tashi N - avatar
+ 10
You're welcome ^^
17th May 2017, 7:44 PM
Tashi N
Tashi N - avatar
+ 1
Thanks!
17th May 2017, 7:44 PM
Anarjay / \
Anarjay / \ - avatar