float computing

my program below :

float fa=123;
float fb=123.456;
float answer;

main()
{ answer=fb-fa;
}

but answer=0.4560013 not 0.456 , why?
anyone help me please.

Parents Reply Children
More questions in this forum