[math]::Round($number,2)
Round number to two decimal places. Change the number after the comma to round to different decimal place
PS C:\> $number = 3.14285714285714 >> [math]::Round($number,2) 3.14
[math]::Round($number,2)
DetailsPS C:\> $number = 3.14285714285714 >> [math]::Round($number,2) 3.14