12 Oct
2009
12 Oct
'09
6:11 p.m.
Hi, following code snippet cln::cl_F x = cl_float(0.5, cln::float_format(50)); x = cos(x); cout << "\n" << x << "\n"; x = x + cln::cl_F(1.); cout << x << "\n"; gives the output 0.8775825618903727161162815826038296519916451971097440529976L0 1.8775825618903728d0 Is there a feature that the float with the highest precision is used as the result precision? Thanks Sebastian