public virtual System.Decimal ReadBigDecimal(string label) { long position = io.GetCurrentPosition(); System.Decimal d = byteArrayConverter.ByteArrayToBigDecimal(ReadBigDecimalBytes() , false); if (NeoDatis.Odb.OdbConfiguration.IsDebugEnabled(LogId) && canLog) { NeoDatis.Tool.DLogger.Debug("Reading bigDecimal '" + d + "' at " + position + (label != null ? " : " + label : string.Empty)); } return(d); }
public virtual void TestBigDecimal1() { System.Decimal bd1 = new System.Decimal(10); byte[] b2 = byteArrayConverter.BigDecimalToByteArray(bd1, true); System.Decimal bd2 = byteArrayConverter.ByteArrayToBigDecimal(b2, true); AssertEquals(bd1, bd2); }