[fpc-pascal] Floating point question

Bart bartjunk64 at gmail.com
Tue Feb 6 18:47:34 CET 2024


On Tue, Feb 6, 2024 at 6:13 PM Rafael Picanço via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:


> type
>   {$IFDEF CPU86}{$IFDEF CPU32}
>     TLargerFloat = Extended;
>   {$ENDIF}{$ENDIF}
>
>   {$IFDEF CPUX86_64}
>     TLargerFloat = Double;
>   {$ENDIF}

Why (re-invent the wheel)?
Why not use Math.Float?
IIRC then this is Extended, double or Single depending on CPU type.
And always the largest precision the CPU supports.

-- 
Bart


More information about the fpc-pascal mailing list