NullableTypes Class Library

NullableDecimal Constructor (Int32, Int32, Int32, Boolean, Byte)

Initializes a new instance of the NullableDecimal structure from parameters specifying the instance's constituent parts.

[Visual Basic]
Overloads Public Sub New( _
   ByVal lo As Integer, _
   ByVal mid As Integer, _
   ByVal hi As Integer, _
   ByVal isNegative As Boolean, _
   ByVal scale As Byte _
)
[C#]
public NullableDecimal(
   int lo,
   int mid,
   int hi,
   bool isNegative,
   byte scale
);

Parameters

lo
The low 32 bits of a 96-bit integer.
mid
The middle 32 bits of a 96-bit integer.
hi
The high 32 bits of a 96-bit integer.
isNegative
The sign of the number; true is negative, false is positive.
scale
A power of 10 ranging from 0 to 28.

Remarks

The binary representation of a Decimal number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10 raised to an exponent ranging from 0 to 28.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionscale is greater than 28.

See Also

NullableDecimal Class | NullableTypes Namespace | NullableDecimal Constructor Overload List