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

 채택된 답변

DGM
DGM 2021년 5월 1일

0 개 추천

%+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)

댓글 수: 2

Dora Imro
Dora Imro 2021년 5월 1일
Thanks a lot!
Turlough Hughes
Turlough Hughes 2021년 5월 1일
See also the following documentation.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2021년 5월 1일

댓글:

2021년 5월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by