JS::DoubleValue

This article covers features introduced in SpiderMonkey 24

Convert a C floating-point number of type double to a JS::Value.

Syntax

JS::Value
JS::DoubleValue(double dbl)
Name Type Description
dbl double C double to convert.

Description

JS::DoubleValue converts a C floating-point number of type double to JS::Value, the type of JavaScript values.

The result is an floating-point JS::Value.

See Also