| 103 | * @return std::string number with commas added |
| 104 | */ |
| 105 | template<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. |
nothing calls this directly
no outgoing calls
no test coverage detected