Reading 64 bit IEEE floating point from a file

This is a discussion on Reading 64 bit IEEE floating point from a file within the C Programming forums, part of the General Programming Boards category; I would like to use a C-program to read a binary database that was written using 8-byte words (IEEE double ...

  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,493
    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-22-2008, 12:19 AM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07: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, 11:04 AM

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