$MaxSizeGB = [math]::Round($MaxSize/1024/1024/1024,2) Write-Output " the maximum size is $MaxSizeGB GB"
At least [math] is used. So close, and yet so far...