how to display number in decimal ?

259 views (last 30 days)
Reema Alhassan
Reema Alhassan on 13 Jul 2018
Answered: Steven Lord on 14 Jul 2018
Hello everyone, I have tried :
format long
format short
and the output still fraction number how can I convert it to decimal ?

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 14 Jul 2018
Since it's likely the "fraction number" is stored as a symbolic object, try calling either the vpa function or the double function with your symbolic number as input.

Community Treasure Hunt

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

Start Hunting!