Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

String formating question

$
0
0

Hello can someone please help me with the following question please

I want to result to read 5%

"{0:P}" -f 5

However the output is

500.00%

How can I make the above output 5% please?

also I understand you can use the # in the above example for zero padding but I do not understand how, can someone please explain this too please :)

Thanks

AAnotherUser__

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles