in reply to Format of number by template

Your may want to look into the perlform manual page. It might not be hard to translate your formats to Perl formats. But since you gave only a single example, it may be hard.

Abigail