Effacer les filtres
Effacer les filtres

Rounding off and Displaying numbers in edit data in GUI

2 vues (au cours des 30 derniers jours)
sandeep singh
sandeep singh le 23 Nov 2018
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

Réponse acceptée

Walter Roberson
Walter Roberson le 23 Nov 2018
sprintf('%.3e',TheValue)

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by