What exactly does %+09.3f mean?

7 views (last 30 days)
Dora Imro
Dora Imro on 1 May 2021
Commented: Turlough Hughes on 1 May 2021
Hello!
I know the that %.3f would mean a float number that shows 3 numbers after the dot, but I really don't understand the +09 part.
Thank you in advance

Accepted Answer

DGM
DGM on 1 May 2021
%+09.3f
(+) -- flag means always display sign before number
0 -- add leading zero padding to full field width
9 -- field width (minimum number of characters to print)
3 -- precision (this means different things depending on the conversion type)
f -- conversion type (fixed-point)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!