[CLN-list] Conversion bug?

Jens Vollinga jensv at nikhef.nl
Mon Sep 20 21:07:08 CEST 2010


Hi,

is there maybe a bug in the implementation of double_approx()? If I do 
something like

#include <iostream>
#include <cln/cln.h>

using namespace std;
using namespace cln;

int main()
{
     cl_F c = cl_F("1.23456789012345678901234567890_200");
     cout << c << endl;
     cout << double_approx(c) << endl;
     return 0;
}

the second output gives only single precision (aka float_approx)!

Regards,
Jens


More information about the CLN-list mailing list