[Axapta-Knowledge-Village] Re: Ceiling function in X++

2009-05-11 Thread Tom Scott
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

[Axapta-Knowledge-Village] Re: Ceiling function in X++

2009-05-07 Thread Ali Ýhsan Aðca
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

[Axapta-Knowledge-Village] Re: Ceiling function in X++

2009-05-07 Thread Ali Ýhsan Aðca
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