Thread: Reading 64 bit IEEE floating point from a file

  1. #1
    rcobb
    Guest

    Reading 64 bit IEEE floating point from a file

    I would like to use a C-program to read a binary database that was written using 8-byte words (IEEE double precision - probably by a Fortran program). I already have the C code to read the database when the database has been written in single precision (4-byte word). My Borland C 5.02 compiler has no types above 32-bit size.

    If Fortran wrote it then I would like to believe C could read it! Do I need a different complier? Or is there anyway I can make this work with my current compiler? I am on a W2K 32-bit intel computer.

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    As far as I know, Borland 5.02 should be able to do it. The type you're looking for is a double. It's common in every compiler I've looked at, and it's usually 8 bytes long.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. 32 bit floating point multiplication
    By HelpMePlease in forum C Programming
    Replies: 1
    Last Post: 11-30-2004, 08:39 AM
  4. Floating point numbers in a binary file
    By frenchfry164 in forum C++ Programming
    Replies: 6
    Last Post: 07-31-2003, 10:04 AM