I have a number a=2.3*10^5, I want to separate 2.3 and 10^5 as two different data value. How do I do it? please help

 채택된 답변

Stephen23
Stephen23 2015년 8월 30일

0 개 추천

>> x = 2.3*10^5;
>> y = 10^floor(log10(x))
y =
100000
>> z = x/y
z =
2.3

댓글 수: 1

Walter Roberson
Walter Roberson 2015년 8월 30일
Watch out for negative numbers and watch out for 0.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

Community Treasure Hunt

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

Start Hunting!

Translated by