[CLN-list] DIGITS
Richard B. Kreckel
kreckel at thep.physik.uni-mainz.de
Wed Dec 1 23:32:05 CET 2004
Hi!
On Wed, 1 Dec 2004, Isidro Cachadiña Gutiérrez wrote:
> Yes, I've read the documentation for default_float_format and I want
> something like
>
> default_float_format float_format(50);
>
> cause float_format (uintL n) "gives the smalles float format which guarantees
> at least n decimal digits in the mantisa."
>
> Then, if I want that all numbers with 50 decimal digits the global variable
> default_float_format has to be equalled with this function, or am I wrong?
Sorry, I have no idea what the problem is supposed to be. Maybe you want
the helper function cl_float()? From the documentation:
`cl_F cl_float (const TYPE&x)'
Returns `x' as a float of format `default_float_format' if it is
an exact number, or `x' itself if it is already a float.
> default_float_format and float_format are of the type float_format_t and
> the compiler doesn't want compile it, perhaps I am doing someting wrong.
Please explain what the compiler does not want to compile and somebody on
this list might be able to help you. The line at the top of your mail
cannot be the problem since it compiles just fine over here.
Regards
-richy.
--
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>
More information about the CLN-list
mailing list