4 std::vector<int>
dbl_to_int (
const std::vector<double> & vecdbl) {
6 for (std::vector<double>::const_iterator vd_it = vecdbl.begin(); vd_it != vecdbl.end(); ++vd_it) {
7 tInt.push_back(
int(*vd_it));
18 std::ostringstream ostr;
std::string dbl_to_string(const double &in)
Converts only the integer part of a double to a string.
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::string int_to_string(const int &in)