Clear Filters
Clear Filters

Different way of displaying numbers

1 view (last 30 days)
Hello,
in my code I have numbers like 10^-3. How can I display this in decimal form, i.e 0.001?

Accepted Answer

Chad Greene
Chad Greene on 5 Mar 2016
Try this for three decimal places:
num2str(pi,'%0.3f')

More Answers (1)

kyrresc
kyrresc on 6 Mar 2016
None of it worked. It's within an sprintf, if that helps.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!