Pregunta

I would like to print the number represented by 3*10^-9 in non-scientific form: 0.000000003. How can I do this? NumberForm[N[3*10^-9], {Infinity, 10}] does not work. Thank you.

¿Fue útil?

Solución

AccountingForm[3. 10^-9, NumberSigns -> {"-", ""}]
AccountingForm[-3. 10^-9, NumberSigns -> {"-", ""}]

(* 0.000000003 *)
(* -0.000000003 *) 

Otros consejos

I think that the following way is how you're "supposed" to do it.

NumberForm[N[3*10^-9], ExponentFunction -> (Null &)]

The ExponentFunction option set like this just specifies that you don't want any exponents. (You can also use that option to restrict output to exponents of certain powers.)

(I'm using Mathematica 7.0 .)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top