portable issue of storing float point value in file

From: Kenji Chan (no_at_no.com)
Date: 05/10/04


Date: Tue, 11 May 2004 01:04:05 +1000

I'm creating a file format that need to store float point value in a file,
it seems that another program on different systems would read the value
differently
, right?

How should I store floating point value? convert to fixed-point value before
store in a file?



Relevant Pages

  • Re: graphics in C to .jpg OR .bmp
    ... my question actually was how to store a graphics image generated in C. ... now save function should store the image generated into a jpeg file. ... you need to know exactly how the pixel data is arranged, ... converting to the file format. ...
    (comp.lang.c)
  • Re: Anyone using GPG on VMS?
    ... JF Mezei wrote: ... I haven't delved into it in detail, but apparently the file format used by gpg can only store a file length if it fits into 32 bits. ... Since the program allows for files larger than that there's code that says something to the effect of "if the file size is too big don't store it". ... My cursory testing so far indicates that's not the case, but I don't really know - so I would prefer to provide an accurate file size whenever possible. ...
    (comp.os.vms)
  • Re: Need someone to point me to the right direction
    ... I need to store documents and I need to know if ... Is digital signatures the best way to identify if the document (file, ... file format) has been tampered with? ... the hash over the file and compare to the value in the database. ...
    (borland.public.delphi.non-technical)
  • Re: Storing variable length data in file -- Paging
    ... > I'm thinking to use pages to store data. ... the object file format under windows. ... name Joe Smith (9 chars) ...
    (comp.lang.c)
  • Re: Storing variable length data in file -- Paging
    ... Luiz Antonio Gomes Pican?o wrote on 25/02/05: ... > I want to do it using pure C, without existing databases. ... > I'm thinking to use pages to store data. ... > Anyone has idea for the file format? ...
    (comp.lang.c)