Calculation

For general Flowcode discussion that does not belong in the other sections.
Post Reply
iangm
Posts: 1
http://meble-kuchenne.info.pl
Joined: Thu Dec 17, 2020 3:44 pm

Calculation

Post 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
Attachments
Main1.JPG
Main1.JPG (24.98 KiB) Viewed 525 times
Last edited by iangm on Fri Apr 14, 2023 3:47 pm, edited 1 time in total.

kersing
Valued Contributor
Posts: 161
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 66 times
Been thanked: 58 times

Re: Calculation

Post by kersing »

Can you share (add as attachment) your flowchart that shows the issue?

medelec35
Matrix Staff
Posts: 1457
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 513 times
Been thanked: 473 times

Re: Calculation

Post 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.
Attachments
test plus 0.02.png
test plus 0.02.png (41.17 KiB) Viewed 542 times
Martin

medelec35
Matrix Staff
Posts: 1457
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 513 times
Been thanked: 473 times

Re: Calculation

Post by medelec35 »

oops, sorry corrected image.
Martin

Post Reply