Re: ceiling function

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: ceiling function

Wayne Rasband-2
> On Aug 07, 2011, Wes Armour wrote:
>
> I am writing an imagej macro. In it I need to round up to the nearest integer e.g. 2.1 -> 3 Normally this can be done with the ceiling function, is there a function like this in imagej macro language?? I've found round and floor, but no ceil.

The latest ImageJ daily build (1.52u51) adds a Math.ceil(n) macro function, along with Math.abs(n), Math.acos(n), Math.asin(n), Math.atan(n), Math.atan2(n1,n2), Math.cos(n), Math.exp(n), Math.floor(n), Math.log(n), Math.log10(n), Math.min(n1,n2), Math.max(n1,n2), Math.pow(n1,n2), Math.round(n), Math.sin(n), Math.sqr(n), Math.sqrt(n) and Math.tan(n).

-wayne
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html