On Aug 10, 2:50 pm, Nick Risaro <[email protected]> wrote: > > It's not unclear at all "This sequence of characters *must represent a > positive value* or a > NumberFormatException<http://download.oracle.com/javase/6/docs/api/java/lang/NumberFormatEx...>will > be thrown"
The docs for the Long class say that the MAX_VALUE is 2^63-1 and the MIN_VALUE is -2^64. This encompasses the full range of 64-bit values. I don't see where the docs for Long.decode say the string must represent a positive value. In fact they explicitly mention the possibility with regard to a leading "-" sign. In any case, the primitive long type can hold any 64-bit value, so that raises the question of how to easily transform any 16-digit hex string into a long. That is what I want anyway. I don't really care to use the intermediate Long object. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

