Returns a binary representation of a Decimal.
[Visual Basic] Public Shared Function GetBits( _ ByVal d As Decimal _ ) As Integer () [C#] public static int[] GetBits( Decimal d ); [C++] public: static int* GetBits( Decimal d ) []; [JScript] public static function GetBits( d : Decimal ) : int[];
An integer array with four elements that contain the binary representation of the argument.
The GetBits method retrieves a binary representation of the specified Decimal. The returned array has 4 elements.
Elements 0, 1, and 2 contain the low, middle, and high 32-bits of the 96-bit integer part of the Decimal.
Element 3 contains the scale factor and sign of the Decimal:
Bits 0-15 (the lower word) are unused.
Bits 16-23 contain a value between 0 and 28, indicating the power of 10 to divide the 96-bit integer part by to produce the Decimal value.
Bits 24-30 are unused.
Bit 31 indicates the sign of the Decimal value: 0 meaning positive and 1 meaning negative.