# libtmux::detail::to_number

- **Module:** libtmux::detail
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L225
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-detail-to_number/

```
libtmux::detail::to_number(text: std::string_view) -> long long
```

tmux renders every value as text.

These read the three shapes it uses, and answer zero, false or the epoch for a value it did not render — which within the supported version range means tmux had nothing to say, not that the token was unknown.
