# xarray.core.accessor_str.StringAccessor.isdecimal

#### StringAccessor.isdecimal()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L913-L935)

Check whether all characters in each string are decimal.

* **Returns:**
  **isdecimal** ([array](https://numpy.org/doc/stable/glossary.html#term-array) of [`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – Array of boolean values with the same shape as the original array.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('74b77b8a-cb80-463a-b899-7c0ccadf13a9','e0075921-4566-4cf1-b6b7-162434e67fbc','17432107-93cc-4cf1-8b56-c42c719dc821','../lite/tree/../notebooks/index.html?path=21e3f58e_0338_48ee_a6cb_96edad8e4ce5.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["2.3", "123", "0"], dims="x")
>>> da
<xarray.DataArray (x: 3)> Size: 36B
array(['2.3', '123', '0'], dtype='<U3')
Dimensions without coordinates: x
>>> isdecimal = da.str.isdecimal()
>>> isdecimal
<xarray.DataArray (x: 3)> Size: 3B
array([False,  True,  True])
Dimensions without coordinates: x
```

<div id="17432107-93cc-4cf1-8b56-c42c719dc821" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('74b77b8a-cb80-463a-b899-7c0ccadf13a9','17432107-93cc-4cf1-8b56-c42c719dc821')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('74b77b8a-cb80-463a-b899-7c0ccadf13a9','17432107-93cc-4cf1-8b56-c42c719dc821')">Open In Tab</button></div><div id="e0075921-4566-4cf1-b6b7-162434e67fbc" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
