display numbers in 'format long'

10 visualizaciones (últimos 30 días)
mohammad
mohammad el 17 de Sept. de 2011
While using of 'sprintf', numbers not display in 'format long' form. for example:
sprintf('%d',0.987654345698)
ans =
9.876543e-001
how can it be shown in 'format long' form?

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 17 de Sept. de 2011
sprintf('%30.10f',pi*1e5)
doc sprintf for more details.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by