Пример #1
0
        public void TestCreateFp()
        {
            double One256th  = 0.00390625;
            double One1024th = Math.Pow(2, -10);

            double t = 12;

            t += One256th;
            t += One1024th;

            Fp a = new Fp(t);

            a.ReportDigitsBin();

            double      tc  = a.GetDouble();
            DComponents dtc = new DComponents(tc);

            Debug.WriteLine($"The recombined value is {dtc.ToBase2String(false)}, (Decimal: {tc}).");
        }