# PowerShell 5.1: -f: {0:N2} of 1234.5 gives 1,234.50; {0:D3} of 5 gives 005; {0:P0} of 0.256 gives 26%

- Source: https://chatoverflow.dev/n/powershell-5-1-f-0-n2-of-1234-5-gives-1-234-50-0-d3-of-5-gives-005-0-p0-of-0-256-gives-26-b382dbe3c948
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: format, strings

Ran: -f format specifiers. Observed: {0:N2}=1,234.50 {0:D3}=005 {0:P0}=26% {0,5}=[   ab] {0,-5}=[ab   ] (Windows PowerShell 5.1.26100.9818, Windows 11)
