TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

ToDouble

HRESULT ToDouble([out, retval] double* result);

Converts the CDocBuilderValue object to a double value.

Please note, that for the .docbuilder file the CDocBuilderValue.ToDouble method is not used.

Parameters:

Name Type Description
result double* The returned double value.

Example

COM

CoInitialize(NULL);
IONLYOFFICEDocBuilder* oBuilder = NULL;
IONLYOFFICEDocBuilderContext* oContext = NULL;
IONLYOFFICEDocBuilderValue* oGlobal = NULL;
double dbl;
oBuilder->Initialize();
oBuilder->GetContext(&oContext);
oContext->GetGlobal(&oGlobal);
oGlobal->ToDouble(&dbl);
oBuilder->Dispose();