0

help

claudio 3 years ago in IQANdesign updated by Gustav Widén (System support) 3 years ago 3

Hi how can I break down a whole number into units, tens and hundreds into qcode thanks in advance

Hello Claudio.

You can use the mod function.

For example the single digits you use (value mod 10)

Then the value would only count up to 9 and then restart.

You can then do the same but with mod 100 and subtract the mod 10 value to get the tens.

And so on as long as you want to.

Here is a small example of what i mean.

Example.idsx

Ok thank you so much for your help. 

Another info if possible, is there a manual or books where it is explained, in more detail, what they do and how to use the functions in Qcode compared to that in IQAN design? If I should find it?

Sorry, nothing else but the instruction book for IQANdesign.

But the mod function is not specifically for Qcode, you can use it in object list also.

That holds true for almost everything you do in Qcode.