Results 1 to 13 of 13
  1. #1
    jairoh_ is offline Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    0

    Default 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. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

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

    Your Google-fu is weak...
    From the API.

    Then a Google on 'unicode category nd' gives us this page at the top.

  3. #3
    jairoh_ is offline Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    0

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

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

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

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

    Quote Originally Posted by jairoh_ View Post
    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
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default 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. #6
    jairoh_ is offline Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    0

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

    Quote Originally Posted by JosAH View Post
    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.

    Quote Originally Posted by Tolls View Post
    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. #7
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

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

    Quote Originally Posted by jairoh_ View Post
    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
    cenosillicaphobia: the fear for an empty beer glass

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

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

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

  9. #9
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

    Default 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 ... ;-)
    cenosillicaphobia: the fear for an empty beer glass

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

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

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

  11. #11
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

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

    Quote Originally Posted by JosAH View Post
    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?"
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  12. #12
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

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

    Quote Originally Posted by Tolls View Post
    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
    cenosillicaphobia: the fear for an empty beer glass

  13. #13
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

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

    what is the use of Character.DECIMAL_DIGIT_NUMBER?-cannabis-keyboard.jpg
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to get the next character
    By akabir77 in forum New To Java
    Replies: 3
    Last Post: 10-24-2011, 06:22 PM
  2. Bounding box for each character
    By nguyenq in forum Java 2D
    Replies: 2
    Last Post: 09-11-2011, 05:24 AM
  3. What is the character set used by java?
    By arnab321 in forum New To Java
    Replies: 3
    Last Post: 07-10-2009, 10:34 AM
  4. Read from a certain character to a certain character
    By blackstormattack in forum New To Java
    Replies: 0
    Last Post: 03-16-2009, 11:36 AM
  5. reading text character by character
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-09-2007, 08:54 PM

Posting Permissions

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