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.
"Why not just provide a link?"
Because then people get shirty saying you're being "unhelpful" by being "non-specific" instead of spelling it out and spoon-feeding it directly in front of the OP's eyes...
;-)
Indeed!
It seems some people are fortunate enough to have sufficient spare time to do such things.
Kinda makes you wonder how their day job is going.
My day job equals national holiday today - why you wondering?
Thank for your detailed description. I am searching solution for the problem. If you have message about It,send it to me please. Thank you again.
Didn't you find the solution within the first minutes of searching?
Considered fixed point or BCD representation?
many, when they see e.g. 1.8 do not even consider fixed point representation