PowerShell Number Format
RobertKaucher
Member Posts: 4,299 ■■■■■■■■■■
in Off-Topic
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?
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?