IJ.d2s "quirk"
Posted by
Joachim Wesner on
Sep 10, 2009; 2:53pm
URL: http://imagej.273.s1.nabble.com/IJ-d2s-quirk-tp3691174.html
Hi again,
I already note for some time, that IJ.ds2 has a "quirk" for very small
values, for example
double small_value = 9.915e-6;
IJ.write(IJ.d2s (small_value, 2));
will not output
"0.00"
but
"9.915E-6"
instead!
Is this intended behaviour?
Sometimes it might be useful to tell if a result is not exactly zero, but
*LARGER* numbers will nevertheless be rounded down to zero as for ex. 1e-3!
Sincerely
Joachim Wesner
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________