[FIX] lang_FR: Fixed decimal handling in french currency

Fixes #179
This commit is contained in:
CrazyMerlyn
2018-09-16 21:24:35 +05:30
committed by Ernesto Rodriguez Ortiz
parent b541ee8d8e
commit 23902ab7c5
2 changed files with 5 additions and 2 deletions

View File

@@ -96,5 +96,6 @@ class Num2Word_FR(Num2Word_EU):
hightxt = "euro/s"
if old:
hightxt = "franc/s"
return self.to_splitnum(val, hightxt=hightxt, lowtxt="centime/s",
divisor=1, jointxt="et", longval=longval)
cents = int(round(val*100))
return self.to_splitnum(cents, hightxt=hightxt, lowtxt="centime/s",
divisor=100, jointxt="et", longval=longval)