Board index » delphi » Converting Pascal Double to C Double

Converting Pascal Double to C Double

Hello,

I need a routine to read a double value written in Pascal to a binary file.
Who can help me?

Thanks

Ronald

 

Re:Converting Pascal Double to C Double


If it was written out by Turbo Pascal as a double then just read it the same
way as if were written to the file by a C program.  The format is the same
as used for a double by Borland C++.

If it is a 6-byte Turbo Pascal real type then look at this page for example
code that converts the number format.

  http://www.eti.pg.gda.pl/KATEDRY/kecs/lab-cpp/snippets

.  Ed

Quote
> Ronald Kett wrote in message
> news:b3ct6b$7cb$03$1@news.t-online.com...

> I need a routine to read a double value written in
> Pascal to a binary file. Who can help me?

Other Threads