MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / comma

Function comma

include/dpp/stringops.h:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 * @return std::string number with commas added
104 */
105template<class T> std::string comma(T value)
106{
107 std::stringstream ss;
108 ss.imbue(std::locale(""));
109 ss << std::fixed << value;
110 return ss.str();
111}
112
113/**
114 * @brief Convert any value from a string to another type using stringstream.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected