Rounding off and Displaying numbers in edit data in GUI

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by