Data type mismatch

Posted on 16th Feb 2014 by admin

Hi,
I am migrating data from algol to c.I mapped real datatype in algol to double datatype in c.real has 6 bytes storage.i got one formula in unisys manual which is about the internal representation of real the formula is
mantissa * 8**(exp)
In my c program i used this formula to convert real to c but i got some precision related problem
For 10.55 in algol i will get 10.5484568985(approximately like this).can anyone help me to resolve this precision problem.
Thanks,

Other forums