Пример #1
0
        public void PrintNumber(BitsConst radix, IOutStream outStream)
        {
            var r = radix.ToInt64();
            if(radix.Size.IsZero)
                r = 10;
            var left = ToString((int) r);

            outStream.AddData(left);
        }
Пример #2
0
 public BitsConst Divide(BitsConst right, Size size)
 {
     if(!(Marshal.SizeOf(typeof(long)) * 8 >= size.ToInt()))
         Tracer.AssertionFailed
             (
                 @"sizeof(Int64)*8 >= size.ToInt()",
                 () => "right=" + right + ";size=" + size.Dump());
     return Convert(ToInt64() / right.ToInt64()).Resize(size);
 }