Displaying Integers with Leading Zeros

Displaying Integers with Leading Zeros

  
Is there an easy way to display an integer with leading zeros? I need to convert an integer number of minutes to h:mm format.
With an if that returns 0 ou "" to prefix your number.

For a value in minutes to turn into HH:MM the formula is something like this

Mod(Minutes,60)+":"+If(Minutes-Trunc(Minutes/60)<10,"0","")+Minutes
Hi,

You can also use the FormatText built-in action for adding padding. Check out SS online documentation for more information.
FormatText(int, 2, 2, True, "0")
Paulo Ramos wrote:
Hi,

You can also use the FormatText built-in action for adding padding. Check out SS online documentation for more information.
		FormatText(int, 2, 2, True, "0")
 
Thanks for the simple answer Paulo!