# Thread: what is the use of Character.DECIMAL_DIGIT_NUMBER?

1. Member
Join Date
Feb 2012
Posts
23
Rep Power
0

## what is the use of Character.DECIMAL_DIGIT_NUMBER?

what is the use of Character.DECIMAL_DIGIT_NUMBER? give me an example. Google can't help me
specifically?

2. Moderator
Join Date
Apr 2009
Posts
13,312
Rep Power
23

## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

From the API.

3. Member
Join Date
Feb 2012
Posts
23
Rep Power
0

## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

so Character.DECIMAL_DIGIT_NUMBER ==9 or digits from 0-9?

4. ## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

Originally Posted by jairoh_
so Character.DECIMAL_DIGIT_NUMBER ==9 or digits from 0-9?
Yep, the digits 0 ... 9 in all possible alphabets, not just the ASII 0 ... 9. They all use the decimal system (it surprises me somewhat).

kind regards,

Jos

5. Moderator
Join Date
Apr 2009
Posts
13,312
Rep Power
23

## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

It's a constant that is used to identify whether a Unicode Character is one of the ND characters (those listed in the second link).
Those are the characters representing the integers 0-9, in whatever language.

It is returned from the Character.getType() method.

6. Member
Join Date
Feb 2012
Posts
23
Rep Power
0

## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

Originally Posted by JosAH
Yep, the digits 0 ... 9 in all possible alphabets, not just the ASII 0 ... 9. They all use the decimal system (it surprises me somewhat).

kind regards,

Jos
ASII? or ASCII? I'm kinda newbie.

Originally Posted by Tolls
It's a constant that is used to identify whether a Unicode Character is one of the ND characters (those listed in the second link).
Those are the characters representing the integers 0-9, in whatever language.

It is returned from the Character.getType() method.
thankyou sir.

7. ## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

Originally Posted by jairoh_
ASII? or ASCII? I'm kinda newbie.
ASCII, sorry for the typo; I'm typing this on my old laptop because I already ruined the keyboard of my new laptop ;-)

kind regards,

Jos

8. Moderator
Join Date
Apr 2009
Posts
13,312
Rep Power
23

## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

I have told you not to use a hammer for typing...

9. ## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

I didn't; I used an axe. b.t.w. I dropped a bit of my espresso in my new laptop and now they're repairing the stupid thing; I hope it's back by the end of the week because this old thing is sooo slow ...

kind regards,

Jos

ps. I bet it can't stand a drop of Grolsch either ... ;-)

10. Moderator
Join Date
Apr 2009
Posts
13,312
Rep Power
23

## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

They don't make 'em like they used to.

11. ## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

Originally Posted by JosAH
I didn't; I used an axe. b.t.w. I dropped a bit of my espresso in my new laptop and now they're repairing the stupid thing; I hope it's back by the end of the week because this old thing is sooo slow ...

kind regards,

Jos

ps. I bet it can't stand a drop of Grolsch either ... ;-)
I used to work at a university help desk (shudder), and one time I spent 45 minutes troubleshooting with a professor over the phone because her laptop wouldn't turn on. Made sure it was plugged in (that was the solution to 75% of the calls from professors, kid you not), took the battery out and put it back in, etc. She refused to just bring it in, and when I asked why, she said... "I spilled some soda into it, and it's all wet.. you don't think that has anything to do with it not turning on, do you?"

12. ## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

Originally Posted by Tolls
They don't make 'em like they used to.
I know; I used to have an old IBM keyboard; its keys had a decent *click* *clock* sound when you pressed and released them. My old dog once barfed on it and the keyboard survived it (the dog did too). Those laptop keyboards nowadays are so fragile; even if you point at them from a distance they look if they might break. They even start to malfunction if you only think of banging those tiny little plastic keys ...

kind regards,

Jos

13. ## Re: what is the use of Character.DECIMAL_DIGIT_NUMBER?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•