Extending Flash |
|
|
|
| C-Level Extensibility > The C-level API > JSBool JS_ValueToDouble() | |||
JSBool JS_ValueToDouble(JSContext *cx, jsval v, double *dp);
Method; extracts a function argument from a jsval structure, converts it to a double (if possible), and passes the converted value back to the caller.
JSContext *cx, jsval v, double *dp
cx argument is the opaque JSContext pointer that passed to the JavaScript function.v argument is the jsval structure from which the double is to be extracted.dp argument is a pointer to an 8-byte double. This function stores the converted value in *dp.A Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.
|
|
|
|