Azzera filtri
Azzera filtri

how to convert exponentional number into a decimal number

1 visualizzazione (ultimi 30 giorni)
dear sir, i m calculating euclidean distance between two vector,the output is in terms of exponential as 1.0635e+011 but i m need of decimal number as .0106
please do me a favour

Risposte (2)

Matt J
Matt J il 9 Ott 2012
>> z=1.0635e+011 %What you have
z =
1.0635e+11
>> z/1e13 %What you've asked for
ans =
0.0106

Andrei Bobrov
Andrei Bobrov il 9 Ott 2012
a*10^-ceil(log10(a))

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by