i want to convert numbers into words. i wrote code in C to do this a couple decades ago. i have also converted it to Pike many years ago. i have also already converted it to Python, but this was as a command. now, i am thinking about a function. what i want to know is, if this is duplicating anything that is built into Python. the code needs a lot of work since the Python version was written when i was beginning in Python, so i will just re-write the command to use the function and put all my re-coding effort into the function.
if there is any other version "out there" i am hoping it is multi-lingual for at least several languages. my version is English-only and i have no experience developing internationalized code.
should i also support float, decimal.Decimal, and even complex numbers? i want to have an optional 2nd argument that is the value to return if the given number value exceeds the maximum value that can be converted.
i think if the given value is float and has a whole number value, i should append " point zero" which would indicate it is float with no fraction. what do you think? this would need to be done however "they" do it for languages beyond English.
if there is any other version "out there" i am hoping it is multi-lingual for at least several languages. my version is English-only and i have no experience developing internationalized code.
should i also support float, decimal.Decimal, and even complex numbers? i want to have an optional 2nd argument that is the value to return if the given number value exceeds the maximum value that can be converted.
i think if the given value is float and has a whole number value, i should append " point zero" which would indicate it is float with no fraction. what do you think? this would need to be done however "they" do it for languages beyond English.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.