The Following is my code
#include<stdio.h>
int main( void )
{
    double dInput = 0.7;        
    printf("\n %.17f ",dInput);
    return 0;
}
The output I get is 0.69999999999999996 instead of 0.7 
can anyone explain why this is happening.
The Following is my code
#include<stdio.h>
int main( void )
{
    double dInput = 0.7;        
    printf("\n %.17f ",dInput);
    return 0;
}
The output I get is 0.69999999999999996 instead of 0.7 
can anyone explain why this is happening.