octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63829] Padding string with 0 in fprintf resul


From: Thibaud Pigeon
Subject: [Octave-bug-tracker] [bug #63829] Padding string with 0 in fprintf results in padding with spaces
Date: Thu, 23 Feb 2023 04:25:11 -0500 (EST)

Follow-up Comment #6, bug #63829 (project octave):


>> fprintf("%-08d\n", 10101)
10101   
>> fprintf("%-08s\n", '10101')
10101000
>> 


With three spaces at the end of first output.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63829>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]