diff options
Diffstat (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/Util.h')
| -rw-r--r-- | Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/Util.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/Util.h b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/Util.h new file mode 100644 index 0000000..a906e55 --- /dev/null +++ b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/Util.h @@ -0,0 +1,32 @@ +/* + * Util.h + * + * Created on: 02.04.2011 + * Author: sven + */ + +#ifndef UTIL_H_ +#define UTIL_H_ + +#ifndef _GLIBCXX_STRING + #include <string> +#endif + +#ifndef _GLIBCXX_SSTREAM + #include <sstream> +#endif + +class Util +{ +public: + static std::string ToString(const long double& val) + { + std::ostringstream ssIn; + ssIn.precision(12); + ssIn << val; + std::string res = ssIn.str(); + return res; + } +}; + +#endif /* UTIL_H_ */ |
