Page 1 of 1

Calculation

Posted: Wed Apr 12, 2023 4:26 pm
by iangm
if test =0 and you add 0.02 test then becomes 0.2. if you carry on then test becomes 0.4, 0.6, 0.8 and then o.1. why does this happen? If test is increased by 0.2 then the values of test printed out are correct. if test is increased by 0.02 then the first few values are wrong. PrintLine and PrintString are correct

Re: Calculation

Posted: Wed Apr 12, 2023 4:39 pm
by kersing
Can you share (add as attachment) your flowchart that shows the issue?

Re: Calculation

Posted: Wed Apr 12, 2023 4:40 pm
by medelec35
Hello.
As you have not used a 9 or 10 post icon I'm assuming you are using FC10.
Are you referring to simulation or hardware?
Just checked the simulation and:

That is what I would expect.
We can't take things further unless you do what kersing has suggested.
As this is nothing to do with user components, I have moved the topic to the general section.

Re: Calculation

Posted: Thu Apr 13, 2023 3:58 pm
by medelec35
oops, sorry corrected image.