[fpc-pascal]Overflow problem with exponentiation

miller at psy.otago.ac.nz miller at psy.otago.ac.nz
Thu Oct 10 03:45:16 CEST 2002

I am having problems with overflows using Exp().

Looking at the documentation, it appears that Exp
is limited to a real result, but I need a larger
number than that (the "Extended" floating
point type is large enough).

At least one other mathematical function (i.e., ABS) will
accept any real type and return a result of the same type,
and it would be nice if Exp, Ln, etc did this too.

In the meantime, can anyone suggest a work-around
(perhaps a special Extended Exp function)?

Thank you,

Jeff Miller

jeffwin at psy.otago.ac.nz

More information about the fpc-pascal mailing list