DiscreteIntervalWidth Property

Gets the width of the interval.

Definition

Namespace: Meta.Numerics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public uint Width { get; }

Property Value

UInt32

Remarks

The width of the interval is the difference between LeftEndpoint and RightEndpoint. This is one less than the number of integers in the interval. Thus an interval with equal left and right endpoints has width 0, not width 1. And and the interval {0 .. MaxValue} has width MaxValue, not MaxValue + 1.

See Also