Skip to main content

A powershell example for formatting numbers

$a = 348

"{0:N2}" -f $a
"{0:D8}" -f $a
"{0:C2}" -f $a
"{0:P0}" -f $a
"{0:X0}" -f $a

Comments

Popular posts from this blog