How to convert fraction form to decimal form?

4 Ansichten (letzte 30 Tage)
Waseem Sajjad
Waseem Sajjad am 17 Dez. 2019
Beantwortet: the cyclist am 17 Dez. 2019
If I simply write
>>1.234
answer is
>>
ans =
1.234
But if I put
>>syms a
>>1.234*a
it gives me answer
>>
ans =
(2469*a)/2000
But I want this answer in decimal form.

Antworten (1)

the cyclist
the cyclist am 17 Dez. 2019
I think you want to use the subs command.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by