cgal/Algebraic_foundations/doc_tex/Algebraic_foundations_ref/to_double.tex

22 lines
603 B
TeX

\begin{ccRefFunction}{to_double}
\ccDefinition
The template function \ccRefName\ returns an double approximation of a number.
The function is defined if the argument type
is a model of the \ccc{RealEmbeddable} concept.
Remark: In order to control the quality of approximation one has to resort to methods that are specific to NT. There are no general guarantees whatsoever.
\ccInclude{CGAL/number_utils.h}
\ccFunction{template <class NT> double to_double(const NT& x);}
{}
\ccSeeAlso
\ccRefConceptPage{RealEmbeddable}\\
\ccRefConceptPage{RealEmbeddableTraits::ToDouble}\\
\end{ccRefFunction}