Home

constant: ceil


  {
    "comment": "/**\r\n * Computes `number` rounded up to `precision`.\r\n *\r\n * @since 3.10.0\r\n * @category Math\r\n * @param {number} number The number to round up.\r\n * @param {number} [precision=0] The precision to round up to.\r\n * @returns {number} Returns the rounded up number.\r\n * @example\r\n *\r\n * ceil(4.006)\r\n * // => 5\r\n *\r\n * ceil(6.004, 2)\r\n * // => 6.01\r\n *\r\n * ceil(6040, -2)\r\n * // => 6100\r\n */",
    "meta": {
        "range": [
            451,
            477
        ],
        "filename": "ceil.js",
        "lineno": 22,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100000412",
            "name": "ceil",
            "type": "CallExpression",
            "value": ""
        }
    },
    "description": "Computes `number` rounded up to `precision`.",
    "since": "3.10.0",
    "tags": [
        {
            "originalTitle": "category",
            "title": "category",
            "text": "Math",
            "value": "Math"
        }
    ],
    "params": [
        {
            "type": {
                "names": [
                    "number"
                ]
            },
            "description": "The number to round up.",
            "name": "number"
        },
        {
            "type": {
                "names": [
                    "number"
                ]
            },
            "optional": true,
            "defaultvalue": 0,
            "description": "The precision to round up to.",
            "name": "precision"
        }
    ],
    "returns": [
        {
            "type": {
                "names": [
                    "number"
                ]
            },
            "description": "Returns the rounded up number."
        }
    ],
    "examples": [
        "ceil(4.006)\r// => 5\r\rceil(6.004, 2)\r// => 6.01\r\rceil(6040, -2)\r// => 6100"
    ],
    "name": "ceil",
    "longname": "ceil",
    "kind": "constant",
    "scope": "global",
    "___id": "T000002R000039",
    "___s": true,
    "filepath": "ceil.js"
}