I want to create an equation with zero's (000) in FRONT

I have a project where I have to have the length of a part (rouned up to next whole number) with zero's in front. I have to have (3) characters.

examples:

1. Length of part is 8"

    Want it to read: 008

2. Length of part is 12"

     Want it to read: 012

3. Length of part is 100"

     Want it to read: 100

I already know how to round up the number, and I also know how to take the "inch" off so thats not the problem, and I also know haw to ADD decimal places, but how do I add zero's in front?

thanks in advance.

Nick

SolidworksParts And Features