What exactly does %+09.3f mean?

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

 Respuesta aceptada

DGM
DGM el 1 de Mayo de 2021

0 votos

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

Dora Imro
Dora Imro el 1 de Mayo de 2021
Thanks a lot!
Turlough Hughes
Turlough Hughes el 1 de Mayo de 2021
See also the following documentation.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 1 de Mayo de 2021

Comentada:

el 1 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by