Functionconvert a quad into a double or long double: C/C++ only!
Syntax C/C++#include <VecLib.h>
double       quadtod( quad x );
long double _quadtold( quad x );
DescriptionThese functions, along with their counterpart, setquad, provide the necessary interface for the use of the data type quad with Borland C++ (where OptiVec still maintains compatibility with earlier versions that had no complete built-in support for 64-bit integers). If, e.g., the value of a quad (say, of x) has to be printed, this must be done by a function call like
printf( "% 20.0Lf", _quadtold( x ));
Error handlingnone
Return valuethe value of x is returned as a double or long double.

VectorLib Table of Contents  OptiVec home