Esempio n. 1
0
        private static string Powers(Pows pw)
        {
            switch (pw)
            {
            case (Pows.Thousand):
                return("тысяч");

            case (Pows.Million):
                return("миллион");

            case (Pows.Billion):
                return("миллиард");

            case (Pows.Trillion):
                return("триллион");

            case (Pows.Quadrillion):
                return("квадриллион");

            case (Pows.Quintillion):
                return("квинтиллион");

            default:
                return(String.Empty);
            }
        }
Esempio n. 2
0
 private static String FixEnding(long num, String numStr, Pows pw)
 {
     numStr += HundredsBuilder(num, num.ToString().Length) + " " + ((num != 0) ? Powers(pw) : String.Empty);
     numStr += (num == 0) ? String.Empty : (((num % 10 > 1 && num % 10 < 5) && !(num % 100 > 10 && num % 100 < 20)) ? "a" : (num % 10) == 1 ? String.Empty : "ов");
     return(numStr);
 }