2012-09-26 14 views

回答

3

使用Decimal(Int32[] bits)构造函数。像这样:

Decimal d = new Decimal(123); 
Int32[] bits = d.GetBits(); 
Decimal e = new Decimal(bits); 
Debug.Assert(d == e); 
1

可以转换回这样的:

var decimal = new Decimal(decimalBitArray) 

MSDN Decimal

1
decimal dec = new decimal(decimalArray); 
相关问题