Different way of displaying numbers

조회 수: 2 (최근 30일)
kyrresc
kyrresc 2016년 3월 5일
답변: kyrresc 2016년 3월 6일
Hello,
in my code I have numbers like 10^-3. How can I display this in decimal form, i.e 0.001?

채택된 답변

Chad Greene
Chad Greene 2016년 3월 5일
Try this for three decimal places:
num2str(pi,'%0.3f')

추가 답변 (1개)

kyrresc
kyrresc 2016년 3월 6일
None of it worked. It's within an sprintf, if that helps.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by