namespace cutl { /** * @brief Format uint64 value to a string with a given width and fill character. * * @param val the value to be formatted. * @param width the width of the formatted string. * @param fill the fill character of the formatted string, default is '0'. * @return std::string the formatted string. */ std::string fmt_uint(uint64_t val, uint8_t width = 0, char fill = '0'); /** * @brief Format double value to a string with a given precision. * * @param val the value to be formatted. * @param precision the precision of the formatted string, default is 2. * @return std::string the formatted string. */ std::string fmt_double(double val, int precision = 2); } // namespace cutl