[double]$pi = 22/7
$pi.ToString('0.00')
Convert number to string. The number of deciaml places can be controled by the value in the ToString()
PS C:\> [double]$pi = 22/7 >> $pi.ToString('0.00') 3.14
[double]$pi = 22/7
$pi.ToString('0.00')
DetailsPS C:\> [double]$pi = 22/7 >> $pi.ToString('0.00') 3.14