Re: Macro language exponential number format?

Posted by dscho on
URL: http://imagej.273.s1.nabble.com/4-colour-merge-tp3698028p3698042.html

Hi,

On Sun, 11 Nov 2007, Joachim Wesner wrote:

> working with my copy of ImageJ 1.38x i just discover that the macro
> language does not accept statements like
>
> a = 5e-3 ;
>
> or
> a = 5.e-3;
> or
>  a = 5.0e-3;
>
> (a = 0.005 works, however)
>
> Am I totally confused here? Is that a "feature" that only recently crept
> in?

No, this is a long standing shortcoming.  I just fixed it in ImageJA, and
will send Wayne a patch.  If you are interested in the patch, see
http://repo.or.cz/w/imageja.git?a=commitdiff;h=2ff92a2c562bacce89f51a20171006914ba9d615.

Ciao,
Dscho