Login  Register

Re: IJ.d2s "quirk"

Posted by Wayne Rasband on Sep 11, 2009; 8:13pm
URL: http://imagej.273.s1.nabble.com/IJ-d2s-quirk-tp3691174p3691175.html

 > Hi Wayne,
 >
 > yes I see that point, but IMHO there should be a way to
 > suppress switching to exponential if requested, to avoid
 > that LARGER values come out in SMALLER (zero) results.
 >
 > Also,
 >
 > 1) The number of digits right to the decimal point in
 > exponential form should be the same as in the non-exp
 > form!? (It´s always 3) 2) When the switch occurs should
 > somehow depend in a sensible way on the # of digits given.
 >
 > I checked the sourcecode, there is this undocumented(?)
 > feature that giving a *negative* number of digits, solves
 > 1) above, but 2) would need a change.

The "quirk" has been removed in the 1.43g daily build. IJ.d2s() now
only uses exponential notation when the second argument (# of digits)
is negative.  The "List", "Save" and "Copy" options in profile plot
windows now use exponential notation when "Scientific Notation" is
enabled in Analyze>Set Measurements.

-wayne