NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal Constructor (Int32, Int32, Int32, Boolean, Byte)

Constructs a Decimal from its 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 Decimal(
   int lo,
   int mid,
   int hi,
   bool isNegative,
   byte scale
);
[C++]
public: Decimal(
   int lo,
   int mid,
   int hi,
   bool isNegative,
   unsigned char scale
);
[JScript]
public function Decimal(
   lo : int,
   mid : int,
   hi : int,
   isNegative : Boolean,
   scale : Byte
);

Parameters

lo
The lowest four bytes.
mid
The middle four bytes.
hi
The highest four bytes.
isNegative
Indicates whether the Decimal is negative.
scale
The power of 10 to divide the Decimal by.

Remarks

This constructor initializes a Decimal from an integer array containing a binary representation.

The scale must be between 0 and 28, inclusive. Note that the scale value only shrinks the decimal * (dec * 10-scale).

See Also

Decimal Structure | Decimal Members | System Namespace | Decimal Constructor Overload List