#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    13
    Rep Power
    0

    Android Character.getNumericValue returns -1


    I'm programming for Android and I'm using Character.getNumericValue but it's returning negative for space (' ', ASCII #31) and the exclamation mark ('!', ASCII #33) and likely the others that I haven't checked yet. Why isn't it returning the proper ASCII value?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    13
    Rep Power
    0
    Never mind, I can just use type-casting to convert char to int.

IMN logo majestic logo threadwatch logo seochat tools logo