PowerShell numbers
Last updated:
POWERSHELL
Int32
Int is the default numeric data type in Windows PowerShell. It is a 32-bit signed integer. The .NET Framework class is System.Int32. Because it is the default numeric data type, I can use [int32] or [int]. To get max and min values:
[int]::MaxValue
2147483647
[int]::MinValue
-2147483648
references: Understanding Numbers in PowerShell - Scripting Blog (microsoft.com)