rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
Format.h
Go to the documentation of this file.
1
3
4#ifndef RIZER_FORMAT_H
5#define RIZER_FORMAT_H
6
7#include <sstream>
8#include <string>
9
10namespace rizer
11{
12
18 inline std::string significant(double value)
19 {
20 std::ostringstream out;
21 out.precision(6);
22 out << value;
23 return out.str();
24 }
25
26} // namespace rizer
27
28#endif // RIZER_FORMAT_H
std::string significant(double value)
value to 6 significant digits, for exception messages.
Definition Format.h:18