Skip to main content

ToDouble

Converts the CDocBuilderValue object to a double value.

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

Syntax

def ToDouble(self) -> float

Parameters

NameTypeDescription
resultdouble*The returned double value.

Example

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
dGlobal = globalObj.ToDouble()