Int to string: I need "001" instead of "1"

romelec

New Member
Licensed User
Longtime User
Hi,

I am developping my first application in basic, I looked all the posts with "string" word but I didn't found the answer.

I need to convert an Int to a String to send to a Bluetooth device I made, but it has to be a fixed size: 3 or 5 characters.

How is it possible to do it ?

In C I would simply do sprintf("%.3d",val).
 
Top