can...u...convert..words..2..no..?????like..if..we enter three it should display 3???????????
Recommended Answers
Jump to Postyou would either have to create a lookup table or use some other kind of construct (like switch/case)... there are no standard library functions to perform the string to number conversion.
for large numbers, you would have to tokenize the string and create a number for each string individually.
All 4 Replies
Clinton Portis 211
Practically a Posting Shark
Narue 5,707
Bad Cop Team Colleague
Salem 5,138
Posting Sage
soulcandra44 -2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.