Page 1 of 1

integer div and mod

PostPosted: Thu Jan 08, 2009 5:36 pm
by Csaba
Hi,
How do you do integer div and mod in Cobra:
numberToTranslate = reminder \ bindingNumberLookup[i]
reminder = reminder mod bindingNumberLookup[i]

Thank you for the help!

Regards
Csaba

Re: integer div and mod

PostPosted: Thu Jan 08, 2009 5:40 pm
by gauthier
I don't know the notation,

you can try sharp'...' with c# expression

Re: integer div and mod

PostPosted: Thu Jan 08, 2009 5:52 pm
by Charles
i = j // k   # integer division
i = j % k # integer modulus