Education and Entertainments Earn Money its Real Experience of knowledge Imortant Weblink collections Fun and Entertainment God thoughts
Create user defined mod method in axapta
There is no inbuilt function to get mod of two values to we can create our own function to get mod by following way.
real UserDefinedMod(real x, real y)
{
;
return (x - ((trunc(x / y) * y)));
}
Create user defined mod method in axapta
There is no inbuilt function to get mod of two values to we can create our own function to get mod by following way.
real UserDefinedMod(real x, real y)
{
;
return (x - ((trunc(x / y) * y)));
}

1 comments:
Hi !
You can get the MOD of two values doing:
modValue = 7 mod 6;
info(strfmt("result: %1", modValue));
It should show: "result: 1"
Check it and then post a comment.
Keep posting!
Post a Comment