Leading 0's when printing a decimal value

How do you print a decimal value with leading zeros? For example I want it to be 001, 002, etc. I tried $sformatf(“%03d”, my_num) but this just makes sure that there is a width of 3 characters

In reply to DVCoder:

From the LRM:

If the value to be displayed has fewer characters than the field width, the field is padded on the left to the length specified by the field width. If the value is wider than the field width, the field is expanded to contain the converted result. Decimal and string values are expanded with leading spaces while hexadecimal, octal, and binary values use leading zeros. No truncation occurs.

So there is no way to do it with the existing formatting specifiers. You will need to write your own.