## nng_stat_value

Get statistic numeric value.

### Synopsis

```c
#include <nng/nng.h>

typedef struct nng_stat nng_stat;

uint64_t nng_stat_value(nng_stat *stat);
```

### Description

The `nng_stat_value` function returns a numeric value for the statistic _stat_.
If the statistic is not of numeric type, then zero is returned.
See xref:nng_stat_type.adoc[`nng_stat_type`] for a description of statistic types.

### Return Values

The numeric value associated with _stat_.

### See Also

xref:nng_stats_get.adoc[nng_stats_get],
xref:nng_stat_bool.adoc[nng_stat_bool],
xref:nng_stat_type.adoc[nng_stat_type],
xref:nng_stat_unit.adoc[nng_stat_unit]
