Skip to content

Commit

Permalink
remove unsupported number range from BulgarianNumberToWordsConverter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Feb 17, 2024
1 parent d5e1c82 commit c693000
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ static string Convert(long input, GrammaticalGender gender, bool isOrdinal, bool

var lastOrdinalSubstitution = "";

if (input / 1000000000000 > 0)
{
if (isOrdinal)
lastOrdinalSubstitution = Convert(input / 1000000000000, gender, false) + " трилион" +
GetEndingForGender(gender, input);
input %= 1000000000000;
}

if (input / 1000000000 > 0)
{
parts.Add(input < 2000000000 ? "един милиард" : Convert(input / 1000000000, gender, false) + " милиарда");
Expand Down

0 comments on commit c693000

Please sign in to comment.