Excellent, many thanks.
Tom
--- In Axapta-Knowledge-Village@yahoogroups.com, Ali Ýhsan Aðca
wrote:
>
> Hi Tom,
>
> You can use below expression:
>
> void ceil(real a)
> {
> return (trunc(a) == a ? a : trunc(a)+1);
> }
>
> Ali Ihsan Agca
>
>
> --- In Axapta-Knowledge-Village@yahoogroups
And yes, as I know there is no function in AX which does what you want.
--- In Axapta-Knowledge-Village@yahoogroups.com, "Tom Scott"
wrote:
>
> Hi, I was wondering if there is a "ceiling" (i.e. round up) function in X++.
> I have tried playing with the round() function but I haven't managed to
Hi Tom,
You can use below expression:
void ceil(real a)
{
return (trunc(a) == a ? a : trunc(a)+1);
}
Ali Ihsan Agca
--- In Axapta-Knowledge-Village@yahoogroups.com, "Tom Scott"
wrote:
>
> Hi, I was wondering if there is a "ceiling" (i.e. round up) function in X++.
> I have tried playing
3 matches
Mail list logo