BigInteger.Zero Property
Gets a value that represents the number 0 (zero).
Assembly: System.Numerics (in System.Numerics.dll)
The BigInteger object returned by this property provides a convenient source of a zero value for use in assignments and comparisons.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Sample Using Powershell
<#
.SYNOPSIS
This script displays statoc properties of a BigInteger
.DESCRIPTION
This script demonstrates the static properties of the BigInteger class.
.NOTES
File Name : Get-BigIntegerStaticProperties.ps1
Author : Thomas Lee - tfl@psp.co.uk
Requires : PowerShell Version 2.0
.NET Framework 4
.LINK
This script posted to:
http://www.pshscripts.blogspot.com
MSDN Sample posted at:
http://msdn.microsoft.com/en-us/library/system.numerics.biginteger_properties.aspx
.EXAMPLE
PSH [C:\foo]: .\Get-BigIntegerStaticProperties.ps1
MinusOne: -1
Zero : 0
One : 1
#>
# Add the .NET Version 4 System.Numerics namespace
$return = [System.Reflection.Assembly]::LoadWithPartialName("System.Numerics")
# Display the static properties of BigIntegerClass
" MinusOne: {0}" -f [System.Numerics.BigInteger]::MinusOne
" Zero : {0}" -f [System.Numerics.BigInteger]::Zero
" One : {0}" -f [System.Numerics.BigInteger]::One
- 8/2/2010
- Thomas Lee