Like Template:0expr but adds padding zeros to get the number up to 4 digits instead of 2. For example:

{{0000expr|15+2}}

produces:

0017