Exemplo n.º 1
0
        public String CalculateDivisionResultInBinary()
        {
            String result;

            result = BinaryValue.DivisionInBinaryFromStrings(InputOne, InputTwo);
            return(result);
        }
Exemplo n.º 2
0
        public int CalculateDivisionResultInDecimal()
        {
            int result;

            result = BinaryValue.DivisionInDecimalFromStrings(InputOne, InputTwo);
            return(result);
        }
Exemplo n.º 3
0
        public int CalculateMultiplicationResultInDecimal()
        {
            int result;

            result = BinaryValue.MultiplyInDecimalFromStrings(InputOne, InputTwo);
            return(result);
        }
Exemplo n.º 4
0
        public String CalculateMultiplicationResultInBinary()
        {
            String result;

            result = BinaryValue.MultiplyInBinaryFromStrings(InputOne, InputTwo);
            return(result);
        }
Exemplo n.º 5
0
        public String CalculateAdditionResultInBinary()
        {
            String result;

            result = BinaryValue.SumInBinaryFromStrings(InputOne, InputTwo);
            return(result);
        }
        public static String SumInBinary(BinaryValue inputOne, BinaryValue inputTwo)
        {
            int    sum    = inputOne.BinaryInt + inputTwo.BinaryInt;
            String result = Convert.ToString(sum, 2);

            return(result);
        }
 public static int SumInDecimal(BinaryValue inputOne, BinaryValue inputTwo)
 {
     return(inputOne.BinaryInt + inputTwo.BinaryInt);
 }