PowerShell Number Format

RobertKaucherRobertKaucher Member Posts: 4,299 ■■■■■■■■■■
I have a number representing a dollar amount. Let's say 12.00. What would you suggest to transform that to the following format?

00000001200

I have created a method that converts it to a string, determines the length and throws it into a for-loop. The format is correct, but it seems rather clunky. Any ideas?
Sign In or Register to comment.