Help convert type double C# to Pascal real. The problem is that the types occupy different amount of bytes (8 and 6, respectively).
Asked
Active
Viewed 755 times
0
-
And how/where do you wish to convert? How is the real available to your C# code? – H H Dec 12 '10 at 23:24
-
I had to write a byte in a file specific structures which operate the program in Pascal – Aleksandr Dec 13 '10 at 00:04
-
Only use Delphi's 6-byte reals if doubles are too fast :) – 500 - Internal Server Error Dec 13 '10 at 21:18
-
Can't you use pascal double or extended? http://www.delphibasics.co.uk/RTL.asp?Name=Double – avra Dec 14 '10 at 14:34
-
Possible duplicate of [Convert C# double to Delphi Real48](https://stackoverflow.com/questions/2539300/convert-c-sharp-double-to-delphi-real48) – Druid Aug 28 '19 at 04:31
1 Answers
1
Real48 is already a legacy type since Delphi 3 or 4. Use double as much as possible in your delphi code.

Marco van de Voort
- 25,628
- 5
- 56
- 89