+ 1

What is the difference between float data type and double data type ?

12th Oct 2017, 10:02 AM
pri
4 odpowiedzi
+ 2
A float is a 32 bit IEEE 754 floating point. A double is a 64 bit IEEE 754 floating point. so it is just a matter of precision because neither of the fraction portions .2 and .26 have a terminating binary representation, so there is some rounding error. the double has more precision so it has slightly less rounding error. http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
12th Oct 2017, 10:12 AM
Arl Kheem Rey B. Galario
Arl Kheem Rey B. Galario - avatar
+ 1
Thank you so much
12th Oct 2017, 10:24 AM
pri
+ 1
welcome pri
18th Oct 2017, 4:20 PM
Jony Braim
Jony Braim - avatar
+ 1
you are from?
18th Oct 2017, 4:20 PM
Jony Braim
Jony Braim - avatar