Results 1 to 3 of 3
  1. #1
    Aamir is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default Number Format Exception while parsing long

    Hi All,
    I am getting numberformat exception when converting binarystring to Long
    Java Code:
    long test=0;
    Long maxValue=Long.MAX_VALUE;
    String minValueString=Long.toBinaryString(minValue);
    test=Long.parseLong(minValueString,2);// getting exception at this line.
    Any help would be higly appreciated
    Regards,
    Aamir

  2. #2
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default

    what is actually that minValue parameter

  3. #3
    RichersooN is offline Senior Member
    Join Date
    Jan 2011
    Location
    Rizal Province, Philippiines
    Posts
    167
    Rep Power
    0

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2011, 05:39 AM
  2. Replies: 7
    Last Post: 12-30-2010, 01:42 PM
  3. Replies: 16
    Last Post: 09-04-2010, 04:03 AM
  4. Date format exception
    By chaudhas in forum New To Java
    Replies: 7
    Last Post: 06-25-2010, 09:31 AM
  5. Parsing a number using a NumberFormat
    By Java Tip in forum java.text
    Replies: 0
    Last Post: 04-16-2008, 11:03 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
  •