Skip to main content

ToDouble

Converts the CDocBuilderValue object to a double value.

note

This method is not available for JS.

Syntax

def ToDouble(self) -> float

Parameters

This method has no parameters.

Example

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