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.
  1 件のコメント
mohammad
mohammad 2011 年 9 月 17 日
Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by