Results 1 to 2 of 2

Thread: might be a stupid question, but...

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    6

    might be a stupid question, but...

    what is with the convention where everyone writes out floating point numbers without decimals as:

    {2.,3.,1.}

    ? C++ takes them without the decimal. Is this some sort of coding standard that everyone follows? Also what about:

    {2.0f, 3.5f, 2.5f}

    I understand that is indicates a floating point number. But WHY is it used when it just requires more typing?

    Thanks...

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2004
    Location
    mexico
    Posts
    125

    Re: might be a stupid question, but...

    afaik if you dont write the f it takes it as a double.

Similar Threads

  1. Another stupid question
    By ViKt0r Erdelyi in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-08-2005, 04:33 AM
  2. very stupid question!
    By in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 05-11-2004, 01:18 AM
  3. stupid stupid question - Installing OpenGL?
    By JonnyW in forum OpenGL: Linux
    Replies: 3
    Last Post: 02-01-2004, 05:44 PM
  4. stupid question
    By blt8 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-28-2002, 11:56 AM
  5. Maybe a stupid question
    By J_Ramone in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-04-2001, 12:29 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
  •  
Proudly hosted by Digital Ocean