Re: Macro language exponential number format?
Posted by
Ben.BigHair on
Nov 11, 2007; 5:41pm
URL: http://imagej.273.s1.nabble.com/4-colour-merge-tp3698028p3698044.html
On Nov 11, 2007, at 10:53 AM, Joachim Wesner wrote:
> Hi there,
>
> 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?
>
Hi,
You could use the pow() function. For example...
print(5 * pow(10,-3));
results in 0.0050
Cheers,
Ben
Ben Tupper
Bigelow Laboratory for Ocean Science
180 McKown Point Road
POB 475
West Boothbay Harbor, ME 04575