MATLAB Answers

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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!