Use the isreal function to determine whether a value is a real number. This function is helpful when you need to validate data before performing numeric operations. For example, you can use isreal to filter out invalid values which could otherwise disrupt aggregations or calculations.

You often use isreal in data cleaning pipelines, conditional logic, and when inspecting metrics like durations, latencies, or numeric identifiers. It’s especially useful when working with telemetry or log data that includes optional or incomplete numeric fields.

For users of other query languages

If you come from other query languages, this section explains how to adjust your existing queries to achieve the same results in APL.

Usage

Syntax

isreal(value)

Parameters

NameTypeDescription
valueanyThe input value to evaluate.

Returns

Returns true if the input is a valid real number. Returns false for strings, nulls, or non-numeric types.

Example

Use isreal to identify real number values.

Query

['sample-http-logs'] 
| extend is_real = isreal(123.11)

Run in Playground

Output

_timeis_real
2025-06-05T12:01:00Ztrue
  • ismap: Checks whether a value is of the dynamic type and represents a mapping.
  • isstring: Checks whether a value is a string. Use this for scalar string validation.