savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
823 stars 496 forks source link

french currency decimal bug #179

Closed gweber2 closed 6 years ago

gweber2 commented 6 years ago

Expected Behaviour

num2words(1.5, lang='fr', to='currency') 'un euro et cinquante centimes'

idem:

num2words(1.50, lang='fr', to='currency') 'un euro et cinquante centimes'

Actual Behaviour

num2words(1.5, lang='fr', to='currency') 'un euro et cinq centimes'

num2words(1.50, lang='fr', to='currency') 'un euro et cinq centimes'

so .5 in numbers returns .05 in letters, .50 in numbers also returns .05 in letters.

Steps to reproduce

num2words(number, lang='fr', to='currency') with number being any single digit decimal number or double digit ending with a zero

ventilooo commented 6 years ago

Hi @gweber2,

Thanks for submitting this bug, would you feel comfortable sending a patch to fix it ? :checkered_flag: :+1:

gweber2 commented 6 years ago

Hi @ventilooo, i have zero experience or programing skills so not very comfortable, apologies.

gweber2 commented 6 years ago

Thank you :+1: