How to change dot's place in fractional number

2 vues (au cours des 30 derniers jours)
Abdulkadir Arslan
Abdulkadir Arslan le 11 Jan 2021
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 ?

Réponse acceptée

Daniel Pollard
Daniel Pollard le 11 Jan 2021
Multiply by 100?
x1 = 0.25;
x2 = x1 * 100;
disp(x2)
25

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by