xieite ::str_number ()
Defined in header <xieite/math/str_number.hpp>
Stringifies numbers. Allows negative radices.
Declaration
template <xieite ::is_arith Arith > [[nodiscard ]]constexpr std ::string str_number (Arith x ,std ::conditional_t <std ::floating_point <Arith >,xieite ::ssize_t ,Arith >radix =10 ,xieite ::number_str_config cfg = {},std ::size_t pad =0 )noexcept ;
Example
Output:int main () {xieite ::dump (xieite ::str_number (12345 )); }
[View in Compiler Explorer]12345