Results 1 to 2 of 2
  1. #1
    csanch11 is offline Member
    Join Date
    Oct 2013
    Rep Power

    Default Showing the min and max value of a float integer??? really confused

    How do I write a program that shows the max and the min value of a float integer? like for example in order to get the max value of a long integer we type System.out.println(Integer.MAX_VALUE); How would I do that for a float integer?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    The Netherlands
    Rep Power

    Default Re: Showing the min and max value of a float integer??? really confused

    The term is a float (primitive), or a Float (class), not a "float integer". You use the same field MAX_VALUE, but instead you use the Float class instead of the Integer class.

    See also: Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics)
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

Similar Threads

  1. Replies: 4
    Last Post: 10-30-2013, 03:25 PM
  2. Replies: 2
    Last Post: 06-22-2013, 07:49 PM
  3. Integer Comparison, Outputting Largest Integer Not Working
    By killingthemonkey in forum New To Java
    Replies: 4
    Last Post: 10-16-2011, 08:59 PM
  4. New to SWING / a tad confused on showing things...
    By Fuginator in forum AWT / Swing
    Replies: 10
    Last Post: 05-15-2011, 10:48 PM
  5. convert unsigned integer to signed integer in java?
    By diskhub in forum New To Java
    Replies: 6
    Last Post: 05-17-2010, 12:50 AM

Posting Permissions

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