Login  Register

Re: math functions in a macro

Posted by Agnès Sauleda Brossa on Feb 21, 2006; 7:33pm
URL: http://imagej.273.s1.nabble.com/math-functions-in-a-macro-tp3703636p3703638.html

Thanks a lot.

Agnès

2006/2/21, Wayne Rasband <[hidden email]>:

>
> > 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.html
>
> Included on the list are sqrt() and round(). Use the Dialog.*()
> functions described at
>
>     http://rsb.info.nih.gov/ij/developer/macro/functions.html#dialog
>
> to have the macro open a dialog box.
>
> -wayne
>