| 194 | } |
| 195 | |
| 196 | const std::wstring floatToString(float f) |
| 197 | { |
| 198 | //not static for thread-safety. |
| 199 | wchar_t buffer[100]; |
| 200 | |
| 201 | swprintf(buffer, 100, L"%.3f", (double)f); |
| 202 | |
| 203 | return std::wstring(buffer); |
| 204 | } |
| 205 | |
| 206 | const std::wstring doubleToString(double d) |
| 207 | { |