search for: figure_1

Displaying 1 result from an estimated 1 matches for "figure_1".

Did you mean: figure1
2005 Jan 05
5
Converting integers to chars i.e 1 to "01"
Hello! I am producing a set of images and I would like them to be sorted by names I give. I was able to produce my names and add integer to them. That is easy. But my problem lies in sort of file from this process: figure_10.png figure_11.png figure_12.png ... figure_1.png figure_20.png ... So I would like to convert integers to something like 01 if upper limit for this conert is 10 or 001 for 100. I wrote a simple function (see below), but I do not know how this limit stuff can be imporved to work really well with...