Hi Paul,

--> msprintf("%04d",3)
ans  =

  "0003"



David

De : users <users-boun...@lists.scilab.org> De la part de paul francedixhuit
Envoyé : vendredi 20 novembre 2020 14:49
À : Users mailing list for Scilab <users@lists.scilab.org>
Objet : [Scilab-users] String and integer

Hi all

In ordre to change files names, I need to convert integers into strings but 
with zeros prior to it

Example if i=1 i need 0001 and not 1

I don't know how to use something like "%4d" with "string"

Thanks

Paul
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to