Permalink
Browse files

Renamed method

  • Loading branch information...
1 parent c7d657e commit 198dfe708e93153e3f2bef53159f9be61fc411bf @robertgreiner committed Aug 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 NumberText/NumberText.cs
View
@@ -31,22 +31,22 @@ public class NumberText {
}
num = scales.Aggregate(num, (current, scale) => Append(current, scale.Key));
- AppendPrefixForScale(num);
+ AppendLessThanOneThousand(num);
return builder.ToString().Trim();
}
private int Append(int num, int scale) {
if (num > scale - 1) {
var baseScale = ((int)(num / scale));
- AppendPrefixForScale(baseScale);
+ AppendLessThanOneThousand(baseScale);
builder.AppendFormat("{0} ", scales[scale]);
num = num - (baseScale * scale);
}
return num;
}
- private int AppendPrefixForScale(int num) {
+ private int AppendLessThanOneThousand(int num) {
num = AppendHundreds(num);
num = AppendTens(num);
AppendUnits(num);

0 comments on commit 198dfe7

Please sign in to comment.