Fr: [2635024] Check printing french specification on AmtInword_FR.fr

https://sourceforge.net/tracker/?func=detail&aid=2635024&group_id=176962&atid=883808
This commit is contained in:
trifonnt 2009-04-06 18:13:40 +00:00
parent 655df3e1a0
commit 3272e21fb1
1 changed files with 18 additions and 0 deletions

View File

@ -93,6 +93,24 @@ public class AmtInWords_FR implements AmtInWords
soFar = numNames[number % 100];
number /= 100;
}
else if ((number % 100 < 80) && (number % 100 > 70))
{
// 71 ->79 (soixante et onze )
soFar = numNames[(number-60) % 100];
number /= 10;
soFar = tensNames[ (number-1) % 10] + soFar;
number /= 10;
}
else if ((number % 100 < 100) && (number % 100 > 90))
{
// 91->99
soFar = numNames[(number-80) % 100];
number /= 10;
soFar = tensNames[ (number-1) % 10] + soFar;
number /= 10;
}
else
{
// 9 et moins