DLL typedef extended und double
Verfasst: Mittwoch 26. Januar 2011, 10:41
Guten Tag,
Da ich eine DLL nicht mit Delphi oder C++ herstellen will, sondern von Euphoria mittels des dort verfügbaren Euphoria-to-C-Translators und des OpenWatcom Compilers, benötige ich eine Antwort auf folgende Frage:
ist "extended" von Delphi in der Auflösung dasselbe wie in C++ "double", d.h. ist die Byteanzahl beider Datentypen = 8 byte ? (oder ist extended die heutige Delphi 10 byte lang)
Ich beziehe mich auf die ProfiLab DLL-Hilfe, worin
type TDLLParams = array[0..100] of extended;
PDLLParams = ^TDLLParams;
In C++ wird dieser Speicherbereich z.B. als (double *PInput) übergeben.
erläutert ist.
"siehe Delphi-Description
The Extended type is a floating point type used when the highest exponent and/or significant digits are required.
It supports approximately 19 digits of precision in a range from 3.37 x 10-4932 to 1.18 x 104932.
Notes
The Single type is the smallest and fastest, but with worst capacity and precision.
The Double type has medium storage, speed, capacity and performance.
A Extended set to its highest value is treated as Infinity."
Vielen Dank für Ihre Hilfe: mit freundlichen Grüssen:
tom_g
Da ich eine DLL nicht mit Delphi oder C++ herstellen will, sondern von Euphoria mittels des dort verfügbaren Euphoria-to-C-Translators und des OpenWatcom Compilers, benötige ich eine Antwort auf folgende Frage:
ist "extended" von Delphi in der Auflösung dasselbe wie in C++ "double", d.h. ist die Byteanzahl beider Datentypen = 8 byte ? (oder ist extended die heutige Delphi 10 byte lang)
Ich beziehe mich auf die ProfiLab DLL-Hilfe, worin
type TDLLParams = array[0..100] of extended;
PDLLParams = ^TDLLParams;
In C++ wird dieser Speicherbereich z.B. als (double *PInput) übergeben.
erläutert ist.
"siehe Delphi-Description
The Extended type is a floating point type used when the highest exponent and/or significant digits are required.
It supports approximately 19 digits of precision in a range from 3.37 x 10-4932 to 1.18 x 104932.
Notes
The Single type is the smallest and fastest, but with worst capacity and precision.
The Double type has medium storage, speed, capacity and performance.
A Extended set to its highest value is treated as Infinity."
Vielen Dank für Ihre Hilfe: mit freundlichen Grüssen:
tom_g