If I am having a number like 1.2346e+02 ,then I want to print only the exponent value (i.e. 02) as a result. How can I do this.Please anyone help me with this.

 Réponse acceptée

Aquatris
Aquatris le 26 Août 2018
Here is one way;
floor(log10(1.2346e+02))

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange

Produits

Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by