Thread: C: adding a printf changes the result???
hello people,
i've been coding in c 6 months. i'll i'm using program designed preform simulation of cells. i'll try skip on details. @ end of simulation form column structure thing , have calculate width , other statistics , put short output file.
typical output file looks this:
but this:code:137.47 10.24 616.00 35.78 38.22 23.15
i spent lot of time looking problem, found out if make printf statement prints value of divisor after division statement, works perfectly, , normal answer! happening?code:472604372093897390883776495616.00 1494506247970435899442579111936.00 616.00 65.86 inf -nan![]()
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk C: adding a printf changes the result???
Ubuntu

Comments
Post a Comment