Login  Register

Re: decimal places inside macros

Posted by Herbie on Mar 22, 2018; 3:47pm
URL: http://imagej.273.s1.nabble.com/decimal-places-inside-macros-tp5020304p5020305.html

Good day Rainer,

I think you are mixing things a bit.

Run this macro

str = "0.123456789";
flt = parseFloat( str );
print( d2s( flt, 9 ) );

and you will see that "float" isn't limited to 4 decimals but printing
it may be ...

HTH

Herbie

::::::::::::::::::::::::::::::::::::::::::::
Am 22.03.18 um 16:40 schrieb Rainer M. Engel:
> I noticed that parseFloat() reduces the decimal places to 4 digits. Is
> there a way to change this globally. I hoped that the decimal setting
> under "Set Measurements" i.e. might do something like this for up to 9
> maybe.
>
>
> Regards,
> Rainer
>

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