how to change a string into a numeric variable imageJ

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

how to change a string into a numeric variable imageJ

ERIC
Hi all,
In macro language , I have  a string variable "53"
Is there a way to transform it into a numeric variable ?

Thanks for your ideas !!!

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: how to change a string into a numeric variable imageJ

dscho
Hi Eric,

On Fri, 5 Apr 2013, Eric Denarier wrote:

> In macro language , I have  a string variable "53"
> Is there a way to transform it into a numeric variable ?

Have a look here:

        http://mirror.imagej.net/developer/macro/functions.html#parseFloat

(I asked Wayne some time ago to add anchors for all macro functions, so
you should be able to append "#<name>" to the macro functions URL to jump
directly to the corresponding description.)

Ciao,
Johannes

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: how to change a string into a numeric variable imageJ

ERIC
In reply to this post by ERIC
Thanks a lot Johannes.
Sorry to have missed this function.
Eric

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