XLL+ Class Library (7.0)


Retrieves a numeric value from the CXlCell

double ToDouble(
   bool bStrict = FALSE
) const;



If bStrict is false (the default) then, if the CXlCell does not contain a double, the function will safely return an appropriate converted double (0 for blanks).

If bStrict is true then the function will throw an exception of type CXlConversionException unless the CXlCell contains a double.

Return Value

This function returns the double value contained in a CXlCell.


Header: xllplus.h

See Also

CXlCell Class | CXlCell Methods