round - Administrator Guide - Cortex XSIAM - Cortex - Security Operations

Cortex XSIAM Documentation

Product
Cortex XSIAM
Creation date
2024-03-06
Last date published
2024-10-10
Category
Administrator Guide
Abstract

Learn more about the Cortex Query Language round() function that returns the input value rounded to the nearest integer.

Syntax
round (<float> | <integer>)
Description

The round() function accepts either a float or an integer as an input value, and it returns the input value rounded to the nearest integer.

Example
dataset = xdr_data 
| alter mynum = divide(action_file_size, 7) 
| alter mynum2 = round(mynum)  
| fields action_file_size, mynum, mynum2 
| filter action_file_size > 3 
| limit 1