Re: math functions in a macro
Posted by
Wayne Rasband on
Feb 21, 2006; 5:07pm
URL: http://imagej.273.s1.nabble.com/math-functions-in-a-macro-tp3703636p3703637.html
> I need to do a previous calculations with data coming form a window
> dialog *in a macro*. I need to do a *square root* and *round *the
> result to the *nearest integer*. There is any way to do that?
All the functions built into the macro language are listed at
http://rsb.info.nih.gov/ij/developer/macro/functions.htmlIncluded on the list are sqrt() and round(). Use the Dialog.*()
functions described at
http://rsb.info.nih.gov/ij/developer/macro/functions.html#dialogto have the macro open a dialog box.
-wayne