How do I change from sig figs to a normal number?

2 views (last 30 days)
Hi All!! below I included a picture of my screen and what I see. In my command window, I am getting numbers in significant figures. So like The semi major axis value in my window is showing up as 2.6653e+04, how do I change this to make it 26653?

Accepted Answer

Ameer Hamza
Ameer Hamza on 8 Nov 2020
Edited: Ameer Hamza on 8 Nov 2020
Replace '%d' in your fprintf() statements to '%f'. If you don't want decimal part the use '%.0f'.
  2 Comments
Ashlianne Sharma
Ashlianne Sharma on 8 Nov 2020
Wow that was such a simple fix, Thank you so much Ameer, I couldnt have figured that out without you!

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!