Share via


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

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    lo As Integer, _
    mid As Integer, _
    hi As Integer, _
    isNegative As Boolean, _
    scale As Byte _
)
public Decimal(
    int lo,
    int mid,
    int hi,
    bool isNegative,
    byte scale
)
public:
Decimal(
    int lo, 
    int mid, 
    int hi, 
    bool isNegative, 
    unsigned char scale
)
new : 
        lo:int * 
        mid:int * 
        hi:int * 
        isNegative:bool * 
        scale:byte -> Decimal
public function decimal(
    lo : int, 
    mid : int, 
    hi : int, 
    isNegative : boolean, 
    scale : byte
)

Parameters

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.

.NET Framework Security

See Also

Reference

Decimal Structure

Decimal Overload

System Namespace