Login  Register

Re: print with format

Posted by dscho on Jul 23, 2010; 11:34am
URL: http://imagej.273.s1.nabble.com/print-with-format-tp3687504p3687505.html

On Fri, 23 Jul 2010, Luis Isaac Ramos Garcia wrote:

>  Dear liters;

Dear cubic meter,

>   When using the print function to save some numeric data to a file, is
> it possible to save those numbers with some numeric format; for example
> if I would like to save the sin(3.5)=-0.350783227, but only three
> significant digits sin(3.5)=-0.351; Is there any way do this in macro
> language.

See the d2s() function:
http://rsb.info.nih.gov/ij/developer/macro/functions.html#D

Ciao,
Johannes