How do I shorten the amount of decimal spaces in a fprintf statement?
    2 views (last 30 days)
  
       Show older comments
    
    Matthew Olivo
 on 15 Jan 2018
  
    
    
    
    
    Commented: Star Strider
      
      
 on 15 Jan 2018
            I type in:
fprintf('The final student score is %f\n',round(final_points,1))
and the answer it gives me is:
The final student score is 690.200000
I need this to be shortened to 690.2, but cant figure out how. Please and thank you!
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
				Find more on Multirate Signal Processing in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

