Prev | Next |
# include <cppad/utility/to_string.hpp>
s = to_string(value)
.
std::to_string
with the following differences:
<cppad/cppad.hpp>
is included,
and it has been extended to a
Base
type,
it automatically extends to the
AD types above Base
.
value
can have the following prototype
const Integer& value
where
Integer
is any of the fundamental integer types; e.g.,
short int
and unsigned long
.
Note that if C++11 is supported by this compilation,
unsigned long long
is also a fundamental integer type.
value
can have the following prototype
const Float& value
where
Float
is any of the fundamental floating point types; i.e.,
float
, double
, and long double
.
std::string s
and contains a representation of the specified
value
.
value
is an
Integer
,
the representation is equivalent to
os << value
where
os
is an std::ostringstream
.
value
is a
Float
,
enough digits are used in the representation so that
the result is accurate to withing round off error.