Menu

#1 Problem with float numbers:

open
nobody
None
5
2011-05-17
2011-05-17
Anonymous
No

from num2word_EN import Num2Word_EN
n2w = Num2Word_EN()
n2w.to_cardinal(263501.49).upper()

>>>'TWO HUNDRED AND SIXTY-THREE THOUSAND, FIVE HUNDRED AND ONE POINT FOUR EIGHT'

notice it will translate to .48 instead to .49.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB