I have a piece of dynamic text displaying the value of particular variable.

The dynamic text is showing the value accurately, but displays as:
"1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, etc."

I would like it to display as:
"01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, etc."

So if the variable returns a value of 5, I'd like the dynamic text to display "05" instead of "5". This is for purely cosmetic reasons to make my HUD look nice and consistent, and doesn't need to affect any other variables, etc.

Any ideas on how to accomplish this?