Send feedback on this topic.
Teradata.Client.Provider
GetBits Method (TdNumber)
Example 



Teradata.Client.Provider Namespace > TdNumber Structure : GetBits Method
The binary representation of the value of this TdNumber structure is returned as an array of signed integers.
Syntax
'Declaration
 
Public Function GetBits() As Integer()
'Usage
 
Dim instance As TdNumber
Dim value() As Integer
 
value = instance.GetBits()
public int[] GetBits()
public:
array<int>^ GetBits(); 

Return Value

An array that contains the number components and exponent is returned. The decimal point is removed from the mantissa and the exponent is adjusted. See TdNumber.GetBytes for more information.
Remarks
The array that is returned will contain 6 elements:
Example
TdNumber original = TdNumber.Parse("9.453983726465875422323e+99");
             
Int32[] result = original.GetBits();
             
//The decimal point in the matissa is removed and the exponent is adjusted
//       9453983726465875422323e+78
//
//The hex representation of the mantissa is 0x20080614DDE423BAC73.
//The hex representation of the exponent is 0x4e
//
//The array that will be returned that contains the internal representation will be
//     (0x423BAC73, 0x80614DDE, 0x00000200, 0x00000000, 0x00000000, 0x0000004E}
//
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdNumber Structure
TdNumber Members