Formatanweisungen
{N[,M][:Format]}
| Formatangabe | Beschreibung |
| C | Währungsformat |
| D | dezimal |
| E | Expotentioal |
| F | Festkommazahl |
| G | Festkomma oder wissenschaftliche darstellung |
| N | nummerische Zahl einschl. Komma |
| P | Prozentzahl |
| X | Hexadezimalzahl |
Powershell:
$integer = 23
$e = "{0:X2}" -f $integer , Write-Host $e
Mit führender null