Returns sign of number
Name | Type | Attribute | Description |
---|---|---|---|
n | the number to check the sign of |
{ "comment": "/**\n * Returns sign of number\n *\n * @memberof PIXI.utils\n * @function sign\n * @param {number} n - the number to check the sign of\n * @returns {number} 0 if `n` is 0, -1 if `n` is negative, 1 if `n` is positive\n */", "meta": { "range": [ 7455, 7668 ], "filename": "index.js", "lineno": 305, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\utils", "code": {} }, "description": "Returns sign of number
", "memberof": "PIXI.utils", "kind": "function", "name": "sign", "params": [ { "type": { "names": [ "number" ] }, "description": "the number to check the sign of
", "name": "n" } ], "returns": [ { "type": { "names": [ "number" ] }, "description": "0 if
" } ], "scope": "static", "longname": "PIXI.utils.sign", "___id": "T000002R004408", "___s": true, "filepath": "core\\utils\\index.js" }n
is 0, -1 ifn
is negative, 1 ifn
is positive