This topic has not yet been rated - Rate this topic

BigInteger.Zero Property

Gets a value that represents the number 0 (zero).

Namespace:  System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)
public static BigInteger Zero { get; }

Property Value

Type: System.Numerics.BigInteger
An integer whose value is 0 (zero).

The BigInteger object returned by this property provides a convenient source of a zero value for use in assignments and comparisons.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
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