Ventuz Technology Group Forum  

Ventuz Forums » Ventuz » How to... » div and mod in expressions

div and mod in expressions
Started by killi at 09-10-2008 8:40. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  09-10-2008, 8:40
killi is not online. Last active: 9/23/2008 6:27:44 AM killi

Top 50 Posts
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 is not online. Last active: 7/17/2008 3:51:46 AM cclad

Top 10 Posts
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 is not online. Last active: 1/6/2009 1:23:45 PM Ralf Stanke



Top 10 Posts
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 is not online. Last active: 9/23/2008 6:27:44 AM killi

Top 50 Posts
Joined on 07-14-2008
Posts 13
Smile [:)]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