Using "%0p" works fine.
d = 5; Output(d as "%03"); Output(d as "#3");
As
Thanks! That'll be fixed in the next beta.