--- id: num title: num Search Operator sidebar_label: num description: Use the num operator to convert a field to a double-precision floating-point number for use in numeric calculations. slug: /help/docs/search/search-query-language/search-operators/num/ canonical: https://www.sumologic.com/help/docs/search/search-query-language/search-operators/num/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; The `num` operator converts a field to a double value (64-bit IEEE 754 double-precision floating-point number), which is twice as accurate as a float value (32-bit IEEE 754 single-precision floating-point number). Using `num` in a query can be useful for sorting results by number instead of alphabetically, which is the default. ## Syntax `num() [as ]` ## Rules * The value of the field must be a negative/positive integer or a real number. For example, 500, 123234820932, or 352.748. ## Examples ### Sort scheduled searches by execution time Use this query to use num to search for Scheduled Searches, and sort them by the time it took each search to execute in seconds. Without the conversion, the results would be sorted in alphabetical order. ```sumo _sourceCategory=concierge completed execution | parse "Execution duration: * s" as duration | num(duration) | sort by duration ``` This query produces results like this: num operator ### Filter results by a numeric threshold After parsing a field, use `num` to cast the value before comparing it numerically: ```sumo _sourceCategory=Apache/Access | parse "bytes=*" as bytes | num(bytes) | where bytes > 100000 ```