Here you go:
$VMsWithSnaps = @(Get-VM | Get-Snapshot | Select vm,name,{[int]$_.sizemb})
Give this a read if you get a moment. It explains how [int] works Windows PowerShell Tip: Formatting Numbers
Here you go:
$VMsWithSnaps = @(Get-VM | Get-Snapshot | Select vm,name,{[int]$_.sizemb})
Give this a read if you get a moment. It explains how [int] works Windows PowerShell Tip: Formatting Numbers