MATLAB: How to change dot’s place in fractional number

mathematicsorder of magnitude

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 ?

Best Answer

Multiply by 100?
x1 = 0.25;
x2 = x1 * 100;
disp(x2)
25