This page explains how to use the isreal function in APL.
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.
Splunk SPL users
isnum
function to check whether a string represents a numeric value.ANSI SQL users
isreal
. You typically check for numeric values using IS NOT NULL
and avoid known invalid markers manually. APL’s isreal
abstracts this by directly checking if a value is a real number.Name | Type | Description |
---|---|---|
value | any | The input value to evaluate. |
true
if the input is a valid real number. Returns false
for strings, nulls, or non-numeric types.
isreal
to identify real number values.
Query
_time | is_real |
---|---|
2025-06-05T12:01:00Z | true |