[CLN-list] Floating point underflow
Jan Rheinländer
jrheinlaender at gmx.de
Fri Nov 1 17:14:28 CET 2019
Hi,
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.
Jan
More information about the CLN-list
mailing list