float.h portability

This is a discussion on float.h portability within the C++ Programming forums, part of the General Programming Boards category; is there some standard header file that will define constants that will state the size of the different parts of ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    552

    float.h portability

    is there some standard header file that will define constants that will state the size of the different parts of floating-point numbers?

    in the documentation for VC++ it states that there is a header file float.h that has all the values, and I wanted to know if that file is also on, say, UNIX systems

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    float.h and limits.h should be present in all ANSI-C implementations

    I would think the situation would be similar for C++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Portability
    By rwmarsh in forum C++ Programming
    Replies: 2
    Last Post: 07-04-2006, 10:36 PM
  2. Replies: 1
    Last Post: 10-24-2005, 06:35 AM
  3. Program Portability (code portability)
    By Perica in forum C++ Programming
    Replies: 2
    Last Post: 11-10-2002, 09:03 AM
  4. what does portability mean?
    By elad in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-03-2002, 02:46 AM
  5. need header files (limits.h and float.h)
    By Sapphire19 in forum C Programming
    Replies: 3
    Last Post: 11-06-2001, 04:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21