AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JSVAL_TO_DOUBLE (Macro)
Summary:     Casts the type flag for a specified JS value and returns a pointer to the value cast as a JS double.
Syntax:
JSVAL_TO_DOUBLE(v)

Description:
JSVAL_TO_DOUBLE casts a specified JS value, v, to a JS double. It does so by casting the value's type tag and casting the result to a double pointer.

Clearing v to a double pointer manipulates its underlying type tag. It does not convert the value stored in v to a different data type. To perform actual data conversion, use the JS_ValueToNumber function.


See also:
DOUBLE_TO_JSVAL
JSVAL_TO_GCTHING
JSVAL_TO_OBJECT
JSVAL_TO_STRING
JS_ValueToNumber
OBJECT_TO_JSVAL
STRING_TO_JSVAL

[sh-index] Back to list of manuals