Re: [fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-21 Thread Arne Hanssen
Thus spoke Lowell C. Savage ([EMAIL PROTECTED]): > At 12:56 PM 9-19-05, Lowell C. Savage wrote: > >Has anyone come up with a set of routines for converting between Turbo > >Pascal's 6-byte "real" format and FPC's real number format? > > Well, I found a "Real2Double" function in the System unit t

Re: [fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-20 Thread Jan Ruzicka
Reading the previously mentioned page closely I found section that contains conversion functions. http://www.merlyn.demon.co.uk/programs/floatval.pas The procedure EightToSix is probably what you are looking for Jan ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-20 Thread Jan Ruzicka
I think basic reference information you may be looking for is on page http://www.merlyn.demon.co.uk/pas-type.htm -- real2double from rtl/inc/genmath.inc -- function r

[fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-20 Thread Lowell C. Savage
What I would still like to see is a "Double2Real" which goes in the opposite direction of the "Real2Double". That way, I can read the data from the existing files and then save new data back to the same files. The loss of precision is not important since the numbers we are using have limitati

[fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-19 Thread Lowell C. Savage
Well, I found a "Real2Double" function in the System unit that converts from an old TP 6-byte "real" to an 8-byte double. (Guess I should have looked a little harder, there.) But I'm not seeing anything going the other way. Anyone? Thanks, Lowell At 12:56 PM 9-19-05, Lowell C. Savage wrote