3 #ifndef CPPQEDCORE_UTILS_FORMDOUBLE_H_INCLUDED
4 #define CPPQEDCORE_UTILS_FORMDOUBLE_H_INCLUDED
6 #include "FormDoubleFwd.h"
25 std::ostream& operator<<(std::ostream&, const Bound<T>&);
49 FormDouble(
int precision,
int width) : precision_(precision), width_(width) {}
62 int getPrecision()
const {
return precision_;}
63 int getWidth ()
const {
return width_;}
93 int widthPositive(
int precision);
94 int widthAny (
int precision);
102 {
return FormDouble(actualPrecision(precision),widthPositive(actualPrecision(precision)));}
105 {
return FormDouble(actualPrecision(precision),0);}
119 operator int()
const {
return getPrecision();}
157 #endif // CPPQEDCORE_UTILS_FORMDOUBLE_H_INCLUDED
Template containing value for the given parameter.
Parameter(const std::string &s, const std::string &d, const T &v)