1 #ifndef ORG_EEROS_LOGGER_PRETTY_HPP_
2 #define ORG_EEROS_LOGGER_PRETTY_HPP_
14 std::stringstream out;
16 bool npositive = (x >= 0);
17 if (!npositive) x = -x;
25 bool positive = (l >= 0);
26 if (!positive) l = -l;
28 int r = (((int)l)/3)*3;
29 if (!positive) r += 3;
39 int right = (int)((x - left)*1000);
88 if (positive) out <<
'+';
else out <<
'-';
119 if (positive) out <<
'+';
else out <<
'-';
std::string pretty(double x)
Definition: Pretty.hpp:12