Monday, January 6, 2014

Solution : MOD function ax 2012/ ax 2009 for real Values.


If we need a mod function that we can pass a real values... we can write our own method like this:

Navigation Path:
AOT > Classes >  Global > Create a new Method:



real RealMod(real a, real b) 
{
    ; 
    return (a - ((trunc(a / b) * b))); 
}

Hope this helps all you guys there. :)
Happy Daxing.

No comments:

Post a Comment