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:     JS_NewDouble (Function)
Summary:     Creates a new double value.
Syntax:
jsdouble * JS_NewDouble(JSContext *cx, jsdouble d);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     d     jsdouble     An existing double value to duplicate.
                 
Description:
JS_NewDouble creates a copy of a JS double, d, for a given executable script context, cx. Space for the new value is allocated from the JS garbage collection heap.

If the duplication is successful, JS_NewDouble returns a pointer to the copy of the double. Otherwise it returns NULL.


See also:
JS_AddRoot
JS_NewDoubleValue
JS_NewNumberValue
JS_strdup

[sh-index] Back to list of manuals