 |
div and mod in expressions
Started by killi at 09-10-2008 8:40. Topic has 3 replies.
|
|
09-10-2008, 8:40
|
killi
Joined on 07-14-2008
Posts 13
|
div and mod in expressions
|
|
|
|
|
Moin,
How do i do div and mod in expressions?
Cheers!
|
|
|
|
|
Report
|
|
|
|
09-10-2008, 13:06
|
cclad
Joined on 02-01-2006
Posts 131
|
Re: div and mod in expressions
|
|
|
|
|
div is A/B mod is A%B
more you can find here ::: http://msdn.microsoft.com/en-us/library/6a71f45d(VS.71).aspx
|
|
|
|
|
Report
|
|
|
|
09-10-2008, 14:40
|
Ralf Stanke

Joined on 05-15-2005
Hamburg, Germany
Posts 366
|
Re: div and mod in expressions
|
|
|
|
|
Please make sure that you do not div or mod by zero! This could result in very strange behaviours of you business logic, if the expression returns NaN (Not a Number)
Ralf
|
|
|
|
|
Report
|
|
|
|
09-10-2008, 15:10
|
killi
Joined on 07-14-2008
Posts 13
|
Re: div and mod in expressions
|
|
|
|
|
Yeah, and if I div by zero in the exact moment when in the LHC the first particles collide we will all disapear in a singularity...
No, just kidding... I know...
Thanks for the answers. I'm just a bit unfamiliar with all that syntax. BTW I used a script instead and now I have a ultra fanzy and configurable new myTimer-Script that i needed 'cause I didn't get the avi-playout to trigger the standard Timer.
Peace!
|
|
|
|
|
Report
|
|
|
|
|
 |