display numbers in 'format long'

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?

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 9월 17일

1 개 추천

sprintf('%30.10f',pi*1e5)
doc sprintf for more details.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by