---
title: "Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview"
description: "Rules in Geneos handle non-standard numeric formats by interpreting strings that start with a number as that number and all other non-empty strings as zero. This allows rules to apply values correctly even when data appears as non-numeric strings."
url: "https://docs.itrsgroup.com/docs/faq/geneos/33998270499357-geneos-rules-how-can-i-get-the-value-from-a-non-standard-numeric-formats-for-a-dataview/index.html"
---
## Related to

Rules, How do I get the value from a non-standard numeric format, Alerts

### Problem

How do I apply a value for a rule if I have data that is showing as a non-numeric value?

![Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview](https://docscdn.itrsgroup.com/faq/images/geneos/33998270499357-inline-1-image.png)

### Solution

Strings are treated as a valid number if they begin with a numerical value. All other strings, except for empty strings, are treated as 0-valued.

For the snippet above, the rule will treat it as 10 instead of the whole string.

Given this, a simple rule can be used for the value above:

```
if value <= 0 then
severity critical
elseif value <= 5 then
severity warning
elseif value <= 30 then
severity ok
endif
```

Severity output for the following values:

![Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview](https://docscdn.itrsgroup.com/faq/images/geneos/33998270499357-inline-1-image.png)

![Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview](https://docscdn.itrsgroup.com/faq/images/geneos/33998270499357-inline-2-image.png)

![Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview](https://docscdn.itrsgroup.com/faq/images/geneos/33998270499357-inline-3-image.png)

Some further examples are available [here](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#handling-of-non-numeric).


