JSBool JS_DoubleToValue()
Description
This function stores a floating-point number return value in a jsval structure.
Arguments
JSContext *cx, double dv, jsval *vp
- The
cxargument is the opaqueJSContextpointer that passes to the JavaScript function. - The
dvargument is an 8-byte floating-point number. - The
vpargument is a pointer to thejsvalstructure into which the contents of the double should be copied.
Returns
A Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.