Exemple #1
0
        public string FullVisualization()
        {
            string output = string.Empty;

            output += GetValueToString() + " ";
            if (factors != null)
            {
                output += factors.Visualize();
            }
            output += "\n";
            if (asAFraction != null)
            {
                output += "As a fraction: " + asAFraction.GetValueToString();
                output += " = " + asAFraction.deciValue.ToString();
                output += "\n     Numerator: " + asAFraction.numerator.FullVisualization();
                output += "     Denomenator: " + asAFraction.denominator.FullVisualization();
            }
            return(output);
        }