[fpc-devel] patch to make math.pp more D7 compatible

Burkhard Carstens fpc at bcsoft.de
Sun Jul 16 19:53:41 CEST 2006


Am Sonntag, 16. Juli 2006 18:38 schrieb Florian Klaempfl:
> Florian Klaempfl wrote:
> > Burkhard Carstens wrote:
> >> Tha attached patch changes the statistic functions (sum, mean,
> >> stddev etc.) to expect "array of double" instead of "array of
> >> float". For most of the functions, I left the result values of
> >> type float as in D7, they are also type extended. Only for
> >> minvalue and maxvalue, I changed the result also to double,
> >> because it doesn't make sense to have higher precision here and D7
> >> does the same.
> >>
> >> This changes might be problematic on platforms where double is not
> >> supported (if any), but as there are other functions using double
> >> in math.pp, I didn't care about this.
> >
> > This is probably ancient stuff so for new stuff we should care
> > about it
> >
> > :) I'll try to modify your patch.
>
> After a second thought I applied it unmodified because architectures
> not supporting double will map it an appropriate type anyways.

ok. Thanks!




More information about the fpc-devel mailing list