Click here to Skip to main content
15,860,943 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
expressions for test if character 'c' is digits
Posted

If the base for displaying the number is greater than or equal to 13 then the character 'c' is a digit. This is most probably not the answer you are after, but it answers your question!

Regards,

Manfred
 
Share this answer
 
v2
Comments
Anderso0on 19-Apr-12 17:49pm    
no my friend
i want expressions with code to this sentence
Sergey Alexandrovich Kryukov 19-Apr-12 18:19pm    
Can you guys explain what are you talking about?
--SA
Chuck O'Toole 19-Apr-12 19:17pm    
It is a literal answer to the question is 'c' a digit. Well, it's a digit in hexidecimal. comes after 'b' and before 'd' :) In fact, it's a digit in any number expressed in a radix of 13 or greater. For example, it's not a digit in base 10. :)
Sergey Alexandrovich Kryukov 20-Apr-12 0:25am    
Yes, thank you, Chuck. I could have read this again a couple of times to get it... :-)
And this is a nice answer, I'll vote my 5.
--SA
Manfred Rudolf Bihy 20-Apr-12 5:15am    
Thank you, SA!
I did hope that OP would rethink the question and rephrase it, alas I was mistaken.
Read up on isdigit()[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Apr-12 0:27am    
:-) A 5.
--SA
Manfred Rudolf Bihy 20-Apr-12 5:16am    
Have a five!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900