--- id: floor title: floor Function sidebar_label: floor slug: /help/docs/search/search-query-language/math-expressions/floor/ canonical: https://www.sumologic.com/help/docs/search/search-query-language/math-expressions/floor/ --- The floor function rounds down to the largest previous integer value. Returns the largest integer not greater than x. ## Syntax `floor() as ` ## Example ```sumo * | floor(1.5) as v ``` ```sumo * | floor(-1.5) as v ```