Display double number with 6 digits exactly
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Askic V
am 17 Okt. 2022
Kommentiert: Askic V
am 21 Okt. 2022
Hello,
I would like to create a string that will contain a double number. This number should be represented with 6 digits exactly.
For example:
x = 12.45;
str_x = sprintf('The number is %f\n', x);
should output 12.4500
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!