[CLN-list] Floating point underflow
Richard B. Kreckel
kreckel at in.terlu.de
Fri Nov 1 20:41:54 CET 2019
Hi Jan,
On 01.11.19 17:14, Jan Rheinländer wrote:
> trying to inhibit floating point underflow exceptions, but it doesn't
> seem to work. What am I doing wrong?
>
> #include <cln/cln.h>
>
> int main() {
> cln::cl_inhibit_floating_point_underflow = true;
> cln::cl_N x = 10.0;
> cln::cl_N ep = 100.0;
> cln::cl_N y = cln::expt(x, ep);
> cln::cl_N z = cln::expt(x, -y);
> }
>
> Running this program still gives me an underflow exception.
>
> Thanks for any hints.
You have found a bug. Thanks a lot for reporting it!
I've committed a patch.
All my best,
-richy.
More information about the CLN-list
mailing list