too many decimals places returned by List.getValue(key)
Posted by
Neil Fazel on
Aug 01, 2014; 4:27pm
URL: http://imagej.273.s1.nabble.com/too-many-decimals-places-returned-by-List-getValue-key-tp5009010.html
I'm using List.setMeasurements to get measurement values as follows:
measurements="area mean standard modal min centroid center integrated median skewness kurtosis";
run("Set Measurements...", measurements+" redirect=None decimal=6");
List.setMeasurements;
Note that I specify "decimal=6". Nevertheless, several of the values are printed with up to 19 decimal places:
printthis = List.getValue("Area")+" "+List.getValue("Mean")+" "+List.getValue("StdDev");
printthis += " "+List.getValue("Mode")+" "+List.getValue("Median")+" "+List.getValue("Min")+" "+List.getValue("Max");
printthis += " "+List.getValue("X")+" "+List.getValue("Y")+" "+List.getValue("XM")+" "+List.getValue("YM");
printthis += " "+List.getValue("IntDen")+" "+List.getValue("Skew")+" "+List.getValue("Kurt");
print(printthis);
115856.0 -0.0028565558275383002 0.020379772636744016 7.486325921490788E-5 -0.002357484307140112 -0.23820121586322784 0.14423562586307526 300.0 300.0 314.9788664929413 296.8684989366027 -330.9491319552773 -0.42541313968512906 5.547452767132739
Is this a bug?
Thanks,
Neil
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html