How to change dot's place in fractional number

5 ビュー (過去 30 日間)
Abdulkadir Arslan
Abdulkadir Arslan 2021 年 1 月 11 日
回答済み: Daniel Pollard 2021 年 1 月 11 日
Hello,
I have a variable x and x is equal to 0.25
I want to change dot's place and make the number 25 instead of 0.25
How to do it ?

採用された回答

Daniel Pollard
Daniel Pollard 2021 年 1 月 11 日
Multiply by 100?
x1 = 0.25;
x2 = x1 * 100;
disp(x2)
25

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDynamic System Models についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by