constexpr to_string_t<N,base,char_type> to_string; // Simplifies usage, e.g. to_string_t<367>() becomes to_string<367>.
```
```
Since the number and base are template parameters, each differing `to_string` use will get its own character buffer.
Since the number and base are template parameters, each differing `to_string` use will get its own character buffer.
The integer/string conversion is done using a simple method I learned over the years, where the string is built in reverse using `n % base` to calculate the value of the lowest digit:
The integer/string conversion is done using a simple method I learned over the years, where the string is built in reverse using `n % base` to calculate the value of the lowest digit:
(*Note: The below examples of code are not up-to-date, though they still give a general idea of how `to_string` works.*)