0

well can any one help me with the internal representation of float and doubles ......i know tht they are stored using the IEEE 754 format so is that the reason why a double 0.7 is greater than a float 0.7 ?????

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by sweetleaf
0

Here is a good explaination.

doubles have greater precision than floats, so if you view the raw value of 0.7 a double might be 0.7000001 while a float might be 0.7000

0

no i found the ans it has to do with internal representation of float nos. in IEEE format one is single precision the other double precision thnks neways....

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.