'Declaration Public Function GetBits() As Integer()
public int[] GetBits()
public: array<int>^ GetBits();
Return Value
An array that contains the number components and meta-data is returned
'Declaration Public Function GetBits() As Integer()
public int[] GetBits()
public: array<int>^ GetBits();
TdDecimal original = TdDecimal.Parse("945398372646587542.2323"); Int32[] result = original.GetBits(); //The scaled integer representation of 945398372646587542.2323 // is 9453983726465875422323 //The precision is 22 or 0x16 //The scale is 4 or 0x04 //The hex representation of 9453983726465875422323 is 0x20080614DDE423BAC73 // //The array that will be returned that contains the internal representation will be // (0x423BAC73, 0x80614DDE, 0x00000200, 0x00000000, 0x00011604} // // Sign = 0x00011604 & 0x00010000 = 0x00010000 // Precision = 0x00011604 & 0x0000FF00 = 0x1600 // Scale = 0x00011604 & 0x000000FF = 0x04
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019