Forums

integer div and mod

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

integer div and mod

Postby Csaba » Thu Jan 08, 2009 5:36 pm

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
Csaba
 
Posts: 42

Re: integer div and mod

Postby gauthier » Thu Jan 08, 2009 5:40 pm

I don't know the notation,

you can try sharp'...' with c# expression
gauthier
 
Posts: 116

Re: integer div and mod

Postby Charles » Thu Jan 08, 2009 5:52 pm

i = j // k   # integer division
i = j % k # integer modulus
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 53 guests