示例#1
0
        public virtual void TestDouble()
        {
            double l1 = 785412.4875;

            byte[] b2 = byteArrayConverter.DoubleToByteArray(l1);
            double l2 = byteArrayConverter.ByteArrayToDouble(b2);

            AssertEquals(l1, l2, 0);
        }
示例#2
0
        public virtual double ReadDouble(string label)
        {
            long   position = io.GetCurrentPosition();
            double d        = byteArrayConverter.ByteArrayToDouble(ReadDoubleBytes());

            if (NeoDatis.Odb.OdbConfiguration.IsDebugEnabled(LogId) && canLog)
            {
                NeoDatis.Tool.DLogger.Debug("Reading double '" + d + "' at " + position + (label
                                                                                           != null ? " : " + label : string.Empty));
            }
            return(d);
        }