[fpc-pascal] Floating point question

Rafael Picanço cpicanco42 at gmail.com
Tue Feb 6 20:48:32 CET 2024


> 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.

Thanks Bart. Math.Float is really great, I will start using it today.

On Tue, Feb 6, 2024 at 2:51 PM Bart <bartjunk64 at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20240206/a6a8a594/attachment.htm>


More information about the fpc-pascal mailing list