XLL+ Class Library (7.0)


Set the value of the NumericToStringConversionMethod flag.

static void SetNumericToStringConversionMethod(
   int conversionMethod



An integer value indicating the method used for Numeric to String conversion. If the value is 1, then the XLL+ framework will be set to use the method of XLL+ 5 (and earlier versions), offering increased accuracy (because Excel handles the conversion). If the value is 0, then the framework will use the method of XLL+ 6 and above, which is faster but less accurate.

This flag controls the behavior of the conversion used by functions called in generated code, when the target variable is a string (or an array of strings) and the input value is numeric.

When the library is initialized, the default value is 0. To change the default behavior, call this method during InitInstance().


Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | CXllApp::GetNumericToStringConversionMethod()