# is_digit

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/character_reader/function-is_digit/

**function** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
fn is_digit(c: char) -> bool
```

Decimal digit test (Unicode general category Nd).

Deviation: the standard library cannot tell Nd from No, so non-ASCII
"other number" characters (superscripts, fractions, circled numbers) are
reported as digits too.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/character_reader.rs#L56)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
