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

Recommended Answers

All 2 Replies

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

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....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.