Summary : Learn how to format numeric output in Windows PowerShell by using format specifiers and numeric constants.
How can I print the amount of free space on a fixed disk in MB with two decimal places?
Use a format specifier as shown here:
… Read the full text.