i like this post (click again to cancel)
0
i dont like this post (click again to cancel) remove favorite mark from this question (click again to restore mark)

Hi!

is there a possibility to perform an integer division or a modulo calculation in topspin 2.1?

Thank you!

asked Sep 06 '11 at 06:03

guma's gravatar image

guma
1


One Answer:
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel)

Yes this is possible. It is mostly used in conditional statements. For example: if "l1 %2 == 1"

would be true if l1 is odd and false if l1 is even.

Integer division is also possible you can divide a loopcounter (integer) by another integer and the result in Topspin2.1 will be the truncated number. I.e l1 = 5 then l1/2 = 2.

Contact me directly if you have more questions.

Clemens

link

answered Sep 06 '11 at 11:47

Clemens%20Anklin's gravatar image

Clemens Anklin
416

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a good answer, for discussions, please use comments and please do remember to vote (login to vote)
toggle preview

powered by CNPROG