How to change dot's place in fractional number

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Mathematics and Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by