フィルターのクリア

Rounding off and Displaying numbers in edit data in GUI

1 回表示 (過去 30 日間)
sandeep singh
sandeep singh 2018 年 11 月 23 日
回答済み: Walter Roberson 2018 年 11 月 23 日
Hello All,
We are facing a issue with rounding of smallest number and displaying in edit box.
for example 4.43456798e^-25 should not be rounded off to 0
it should be rounded of to 4.435e^-25. because user need to have the value and also should fit into edit box. But the contrain is we should not increase the editbox size
kindly suggest us and do the needful

採用された回答

Walter Roberson
Walter Roberson 2018 年 11 月 23 日
sprintf('%.3e',TheValue)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by