Thread: floats and doubles

  1. #1
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002

    floats and doubles

    Can someone give me an in-depth explanation as to what are the differences between a float and a double?

    I only know that a double is, well, bigger than a float.

  2. #2
    Registered User
    Join Date
    Nov 2002
    I don't know if there really is that much in depth.
    A double gives you more accuracy, but in doing so, usually takes up 8 bytes v. a float taking up 4 bytes.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Double's and floats, i need their bytes.
    By Florian in forum C++ Programming
    Replies: 26
    Last Post: 07-08-2008, 05:42 PM
  2. New programmer missing somthing -- help!
    By jimmy the saint in forum C Programming
    Replies: 20
    Last Post: 02-23-2008, 05:57 PM
  3. a few opengl(or general programming) questions
    By linuxdude in forum Game Programming
    Replies: 20
    Last Post: 06-14-2004, 07:47 AM
  4. rewritten scanf for floats
    By monkey_C in forum C Programming
    Replies: 3
    Last Post: 12-09-2002, 04:21 PM
  5. an error masseg
    By talal*c in forum C Programming
    Replies: 3
    Last Post: 01-08-2002, 08:48 PM