Exemple #1
0
        public void SetUpResults()
        {
            result = new Results();
            result.full = 36;
            result.fullOld = 56;

            result.empty = 55;
            result.emptyOld = 77;

            result.partial = 23;
            result.partialOld = 39;
        }
Exemple #2
0
        private string partialSquares(int partial1, int partial2, int partial3)
        {
            string s = "";
            int partial = partial1 + partial2 + partial3;
            decimal result = 1 / ((decimal) partial + 1);
            result = Math.Truncate(1000 * result)/1000;

            s = String.Format("\n1 over partial plus 1: {0}", result);

            return s;
        }