PowerTip: Use PowerShell to display a percentage that has two decimal places
Summary: Use Windows PowerShell to display a percentage as a two place number. How can I use Windows PowerShell to display a number as a percentage that has two decimal places? Use the -f format specifier, and specify a pattern as “{0:p2}”. On the other side of the -f format specifier, perform your percentage calculation. Here is an example: PS ...