display numbers in 'format long'

조회 수: 10 (최근 30일)
mohammad
mohammad 2011년 9월 17일
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일
sprintf('%30.10f',pi*1e5)
doc sprintf for more details.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by