You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected num2words(98_746_251_323_029.99) to return 'ninety-eight trillion, seven hundred and forty-six billion, two hundred and fifty-one million, three hundred and twenty-three thousand and twenty-nine point nine nine'
but it returns 'ninety-eight trillion, seven hundred and forty-six billion, two hundred and fifty-one million, three hundred and twenty-three thousand and twenty-nine point nine eight'
I tried using the decimal module instead of float num2words(Decimal(98_746_251_323_029.99)) but it returned the same result 'ninety-eight trillion, seven hundred and forty-six billion, two hundred and fifty-one million, three hundred and twenty-three thousand and twenty-nine point nine eight'
Is this an approximation with the library? How do I get correct approximation for decimal values like this?
The text was updated successfully, but these errors were encountered:
I expected
num2words(98_746_251_323_029.99)
to return 'ninety-eight trillion, seven hundred and forty-six billion, two hundred and fifty-one million, three hundred and twenty-three thousand and twenty-nine point nine nine'but it returns 'ninety-eight trillion, seven hundred and forty-six billion, two hundred and fifty-one million, three hundred and twenty-three thousand and twenty-nine point nine eight'
I tried using the decimal module instead of float
num2words(Decimal(98_746_251_323_029.99))
but it returned the same result 'ninety-eight trillion, seven hundred and forty-six billion, two hundred and fifty-one million, three hundred and twenty-three thousand and twenty-nine point nine eight'Is this an approximation with the library? How do I get correct approximation for decimal values like this?
The text was updated successfully, but these errors were encountered: