TechTalk Genome v4.2

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

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

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.

Requirements

Namespace: TechTalk.Genome.NullableTypes

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

NullableDecimal Class | TechTalk.Genome.NullableTypes Namespace | NullableDecimal Constructor Overload List