+ 1
What is the difference between float data type and double data type ?
4 Answers
+ 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
+ 1
Thank you so much
+ 1
welcome pri
+ 1
you are from?