Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By JosAH

Thread: Displaying the max and min value of a long integer

  1. #1
    csanch11 is offline Member
    Join Date
    Oct 2013
    Posts
    63
    Rep Power
    0

    Default Displaying the max and min value of a long integer

    How do I write a program that shows the max and the min value of a float integer? Sorry the tittle says long, but I found out that in order to get the long I just type in System.out.println(Integer.MAX_VALUE); and System.out.println(Integer.MIN_VALUE); I don't know how to do it to a float integer.
    Last edited by csanch11; 02-20-2014 at 08:02 AM.

  2. #2
    csanch11 is offline Member
    Join Date
    Oct 2013
    Posts
    63
    Rep Power
    0

    Default Re: Displaying the max and min value of a long integer

    ....?????
    Last edited by csanch11; 02-20-2014 at 08:03 AM.

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,469
    Rep Power
    5

    Default Re: Displaying the max and min value of a long integer

    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    5,248
    Rep Power
    9

    Default Re: Displaying the max and min value of a long integer

    A float integer. I must resort to a bit of cruel kindness to tell you that such a beast does not exist in Java. It is either a float or an int. Or perhaps a double or a long.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,271
    Blog Entries
    7
    Rep Power
    24

    Default Re: Displaying the max and min value of a long integer

    Very light integers float, and small bricks do ...

    kindest regards,

    Jos
    JesseJson likes this.
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Integer Comparison, Outputting Largest Integer Not Working
    By killingthemonkey in forum New To Java
    Replies: 4
    Last Post: 10-16-2011, 08:59 PM
  2. Extracting individual numbers from a long integer
    By CurbYourEnthusiasm in forum New To Java
    Replies: 6
    Last Post: 02-18-2011, 04:53 PM
  3. Letter L or l to long integer?
    By Jagdeesh123 in forum New To Java
    Replies: 1
    Last Post: 12-09-2010, 09:05 AM
  4. Please Review My Code (Long Integer Addition)
    By Saradus in forum New To Java
    Replies: 12
    Last Post: 07-05-2009, 01:01 PM
  5. Calculate sum of long integer!
    By Julingo in forum New To Java
    Replies: 2
    Last Post: 09-09-2008, 11:50 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
  •