# libtmux::detail::to_number

- **Module:** libtmux::detail
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L160
- **Page:** https://libtmux.org/reference/cxx/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.
