StorageBusBindingTableView VolumeEstimate VolumeType Right $v = $_.MirrorSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $v -ge 1024 -and $i -lt $postfixes.Length; $i++) { $v /= 1024; } return "" + [System.Math]::Round($v,2) + " " + $postfixes[$i]; MirrorTierName Right $v = $_.ParitySize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $v -ge 1024 -and $i -lt $postfixes.Length; $i++) { $v /= 1024; } return "" + [System.Math]::Round($v,2) + " " + $postfixes[$i]; ParityTierName Right $v = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $v -ge 1024 -and $i -lt $postfixes.Length; $i++) { $v /= 1024; } return "" + [System.Math]::Round($v,2) + " " + $postfixes[$i];