Because floating point numbers are approximations. Digital values cannot represent real numbers exactly. Search the web for explanations of how they work.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
Thanks for the reply.
But once you converting string which has fixed value. Then how it can be treat as different value? I know it is not different value but i want to understand why exactly it is happening like this.
Did you try the search?Is there anything do with the gcc compiler?
No.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944