Example #1
0
        public override string ToString()
        {
            string rubbles = Rubbles.ToString();
            string kopeck  = (Kopeck.ToString().Length > 1) ? Kopeck.ToString() : (Kopeck.ToString() + "0");

            return(rubbles + "." + kopeck);
        }
Example #2
0
        public string ToString(BynStringFormat format = BynStringFormat.dot)
        {
            string rubbles = Rubbles.ToString();
            string kopeck  = (Kopeck.ToString().Length > 1) ? Kopeck.ToString() : (Kopeck.ToString() + "0");

            switch (format)
            {
            case BynStringFormat.dot:
                return(rubbles + "." + kopeck);

            case BynStringFormat.comma:
                return(rubbles + "," + kopeck);

            default:
                return(rubbles + "." + kopeck);
            }
        }