{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "ceil",
  "description" : "Round a number up to the nearest integer.",
  "note" : "This is a noop for `long` (including unsigned) and `integer`. For `double` this picks the closest `double` value to the integer similar to Math.ceil.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "number",
          "type" : "double",
          "optional" : false,
          "description" : "Numeric expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "number",
          "type" : "integer",
          "optional" : false,
          "description" : "Numeric expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "integer"
    },
    {
      "params" : [
        {
          "name" : "number",
          "type" : "long",
          "optional" : false,
          "description" : "Numeric expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "long"
    },
    {
      "params" : [
        {
          "name" : "number",
          "type" : "unsigned_long",
          "optional" : false,
          "description" : "Numeric expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "unsigned_long"
    }
  ],
  "examples" : [
    "ROW a=1.8\n| EVAL a=CEIL(a)"
  ],
  "preview" : false,
  "snapshot_only" : false
}
