How can i get this result use StringFormat

 

example and exclude result:

 double var=5;

 Print(StringFormat("???",var));

result: 005

 double var=55;

 Print(StringFormat("???",var));

result: 055

 double var=555;

 Print(StringFormat("???",var));

result: 555


 what is  the string with format right description on StringFormat func "???"

 
Use code tool to write your codes
 
ah2005:

 what is  the string with format right description on StringFormat func "???"

"%03.0f"

 
Seng Joo Thio:

"%03.0f"

perfect!

 
ah2005: perfect!
Perhaps you should read the manual, before coding.