In PowerShell, how can I test if a variable holds a numeric value?
Currently, I\'m trying to do it like this, but it always seems to return false.
false
PS> Add-Type -Assembly Microsoft.VisualBasic PS> [Microsoft.VisualBasic.Information]::IsNumeric(1.5) True
http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.information.isnumeric.aspx