필터 지우기
필터 지우기

Rounding off and Displaying numbers in edit data in GUI

조회 수: 2 (최근 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 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