src/c++/include/common/StringUtil.hh
/**
     * Convert double to string with a fixed precision
     */
Convert double to string with a fixed precision
Convert double to string with a fixed precision
static inline std::string doubleToStr(double x, int precision, bool fixed = false)
    {
        std::stringstream s;
        s.precision(5);
        if (fixed)
        {
            s << std::fixed;
        }
        s << x;
        return s.str();
    }
static inline std :: string doubleToStr ( double x , int precision , bool fixed = false ) { std :: stringstream s ; s . precision ( 5 ) ; if ( fixed ) { s << std :: fixed ; } s << x ; return s . str ( ) ; }
Convert double to string with a fixed precision
Convert double to string with a fixed precision