{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "floor",
  "description" : "Round a number down to the nearest integer.",
  "note" : "This is a noop for `long` (including unsigned) and `integer`.\nFor `double` this picks the closest `double` value to the integer\nsimilar to Math.floor.",
  "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=FLOOR(a)"
  ],
  "preview" : false,
  "snapshot_only" : false
}
