All functions named to_chars
convert value into a character string
by successively filling the range
[first, last),
where [first, last) is required to be a valid range.

If the member ec
of the return value
is such that the value
is equal to the value of a value-initialized errc,
the conversion was successful
and the member ptr
is the one-past-the-end pointer of the characters written.

Otherwise,
the member ec has the value errc::value_too_large,
the member ptr has the value last,
and the contents of the range [first, last) are unspecified.

The functions that take a floating-point value
but not a precision parameter
ensure that the string representation
consists of the smallest number of characters
such that
there is at least one digit before the radix point (if present) and
parsing the representation using the corresponding from_chars function
recovers value exactly.

If there are several such representations,
the representation with the smallest difference from
the floating-point argument value is chosen,
resolving any remaining ties using rounding according to
round_to_nearest.

The functions taking a chars_format parameter
determine the conversion specifier for printf as follows:
The conversion specifier is
f if fmt is chars_format::fixed,
e if fmt is chars_format::scientific,
a (without leading "0x" in the result)
if fmt is chars_format::hex,
and
g if fmt is chars_format::general.

`constexpr to_chars_result to_chars(char* first, char* last, `*integer-type* value, int base = 10);

`to_chars_result to_chars(char* first, char* last, `*floating-point-type* value);

`to_chars_result to_chars(char* first, char* last, `*floating-point-type* value, chars_format fmt);

`to_chars_result to_chars(char* first, char* last, `*floating-point-type* value,
chars_format fmt, int precision);

See also: ISO/IEC 9899:2018, 7.21.6.1