> 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 <bartjun...@gmail.com> wrote: > On Tue, Feb 6, 2024 at 6:13 PM Rafael Picanço via fpc-pascal > <fpc-pascal@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 >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal