Results 1 to 4 of 4

Thread: Float issue !!

  1. #1
    javaBee is offline Member
    Join Date
    Jan 2012
    Posts
    12
    Rep Power
    0

    Thumbs up Float issue !!

    Heyy.. guys.
    I saw a datatype declaration float g=5.67f !!

    What is that "f" means , which is at the end of 5.67 ??

    Please reply back !!

    Thnx for advnc !!

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    6

    Default Re: Float issue !!

    By default, the floating-point literals are of type double. A trailing "f" (or "F") indicates that there is a float.

  3. #3
    javaBee is offline Member
    Join Date
    Jan 2012
    Posts
    12
    Rep Power
    0

    Default Re: Float issue !!

    Thnx yaar !!

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Float issue !!

    1) Don't use oversized, brightly colored font.
    2) Do use proper words.

    Mentally challenged pre-teens (IQ of 60 and below) are exempt from these rules.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. [Q] - pi as a float
    By oran0007 in forum New To Java
    Replies: 1
    Last Post: 09-30-2011, 11:33 AM
  2. regarding int and float
    By lakshmibvaraprasad in forum New To Java
    Replies: 2
    Last Post: 07-24-2011, 09:30 PM
  3. Float question
    By Lund01 in forum New To Java
    Replies: 7
    Last Post: 07-06-2011, 08:36 PM
  4. FloatBuffer and 'put( float[] src )'
    By maxkiva in forum New To Java
    Replies: 4
    Last Post: 08-08-2010, 12:56 PM
  5. Float to String
    By mew in forum New To Java
    Replies: 4
    Last Post: 12-29-2007, 06:08 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
  •