Formatting an integer x.xxxxx as xx.xxx
Use the toString()
method with specified format.
PS > $int = 9.5587452369PS > $int.ToString("00.000")09,559
Or
PS > "{0:00.000}" -f $int09,559
Read more at MSDN - Custom Numeric Format Strings
Use the toString()
method with specified format.
PS > $int = 9.5587452369PS > $int.ToString("00.000")09,559
Or
PS > "{0:00.000}" -f $int09,559
Read more at MSDN - Custom Numeric Format Strings