Re: Scientific notation within a numericField of a GenericDialog
Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Scientific-notation-within-a-numericField-of-a-GenericDialog-tp5024509p5024510.html
Hi Philippe,
you can specify a negative number for the number of digits, then ImageJ
uses scientific notation. It is the same as with IJ.d2s (java) or d2s
(macro).
Macro example:
Dialog.create("test");
Dialog.addNumber("the number", 1.0, -3, 8, "units");
Dialog.show();
Michael
________________________________________________________________
On 09.03.21 19:59, CARL Philippe (LBP) wrote:
> Dear all,
> Is there a way to force the content of a numericField (at least for its defaultValue) within a GenericDialog to be shown with scientific notations.
> I thank very much in advance for your help on this.
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html