Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- lo
Type: System. . :: . .Int32
The low 32 bits of a 96-bit integer.
- mid
Type: System. . :: . .Int32
The middle 32 bits of a 96-bit integer.
- hi
Type: System. . :: . .Int32
The high 32 bits of a 96-bit integer.
- isNegative
Type: System. . :: . .Boolean
The sign of the number; 1 is negative, 0 is positive.
- scale
Type: System. . :: . .Byte
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.