フィルターのクリア

how to split a number?

1 回表示 (過去 30 日間)
Paromita Bhattacharjee
Paromita Bhattacharjee 2015 年 8 月 30 日
コメント済み: Walter Roberson 2015 年 8 月 30 日
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 日
>> 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 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by