mozilla
Your Search Results

    JSVAL IS DOUBLE

    Determines if a given jsval is a number represented as a jsdouble.

    Syntax

    JSVAL_IS_DOUBLE(v)
    

    Description

    JSVAL_IS_DOUBLE(v) is true if v is a number represented in memory as a jsdouble.

    To check whether v is a number, regardless of implementation details, use JSVAL_IS_NUMBER instead.

    Example

    The following code snippet illustrates how a JavaScript variable, MyItem, is conditionally tested in an if statement to see if it is a JS double data type.

    if (JSVAL_IS_DOUBLE(MyItem)) {
        . . .
    }
    

    See Also

    MXR ID Search for JSVAL_IS_DOUBLE

    JSVAL_IS_BOOLEAN, JSVAL_IS_GCTHING, JSVAL_IS_INT, JSVAL_IS_NULL, JSVAL_IS_NUMBER, JSVAL_IS_OBJECT, JSVAL_IS_PRIMITIVE, JSVAL_IS_STRING, JSVAL_IS_VOID

    Document Tags and Contributors

    Contributors to this page: Jorend
    Last updated by: Jorend,