Hey, im having a problem with a calculation. This is a sample of the code:
Now.. if you calculate this.. a = 800. and b = 800.
However.... the statement if ( a == b ) returns false.
Can anyone tell me why?
Code:
void main()
{
double a = 1.16 / 1.45 * 1000.0;
double b = 800.0;
if ( a == b )
printf("a equals b");
}
Now.. if you calculate this.. a = 800. and b = 800.
However.... the statement if ( a == b ) returns false.
Can anyone tell me why?