# Number

All ACF custom fields are stored as strings - even numeric types like Number to allow for decimal points. \
\
Liquid handles this quite nicely with one exception: you cannot do a direct comparison between a number and a string\
\
So while this is possible:

```html
<p>We have {{ product.metafields.accentuate.stock | plus: 100 }} in stock</p>
```

You need to convert it to a number if you want to do a numeric comparison with the field's value beforehand, like this:

```liquid
{% assign in_stock = product.metafields.accentuate.stock | plus: 0 %} 

{% if in_stock < 5 %}
  <p>Product is low on stock</p>
{% endif %}
```

{% hint style="info" %}
the " | plus: 0 " converts the string into a number type in Liquid
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.accentuate.io/metafield-definitions/fields/field-data-type/acf-field-types/number.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
