Skip to content

Commit

Permalink
use some compound statements (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Feb 16, 2024
1 parent f80906d commit 382960c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public override string Convert(long number, GrammaticalGender gender, bool addAn
else
{
var ones = tens % 10;
tens = tens / 10;
tens /= 10;

if (ones > 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected static List<int> SplitEveryThreeDigits(int number)

parts.Add(threeDigit);

rest = rest / 1000;
rest /= 1000;
}

return parts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public override string Convert(long input, GrammaticalGender gender, bool addAnd
if (input < 0)
{
negativeNumber = true;
input = input * -1;
input *= -1;
}

if (input < 1000000000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private static List<int> SplitEveryThreeDigits(int number)

parts.Add(threeDigit);

rest = rest / 1000;
rest /= 1000;
}

return parts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ private static string GetThousandsValue(ref long number)
number %= 1000;

if (number > 0)
local_word = local_word + "யிரத்து";
local_word += "யிரத்து";
else
local_word = local_word + "யிரம்";
local_word += "யிரம்";

return local_word;
}
Expand Down

0 comments on commit 382960c

Please sign in to comment.