'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
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |