Is there an efficient method of converting an integer into the written numbers, for example:
string Written = IntegerToWritten(21);
would return ‘Twenty One’.
Is there any way of doing this that doesn’t involve a massive look-up table?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should work reasonably well:
(Edited to fix a bug w/ million, billion, etc.)