16 #ifndef OR_TOOLS_LP_DATA_LP_PRINT_UTILS_H_ 17 #define OR_TOOLS_LP_DATA_LP_PRINT_UTILS_H_ 21 #include "absl/strings/str_format.h" 31 return absl::StrFormat(
"%.7g",
a);
35 return absl::StrFormat(
"%.16g",
a);
39 return absl::StrFormat(
"%.19g",
a);
63 #endif // OR_TOOLS_LP_DATA_LP_PRINT_UTILS_H_
std::string Stringify(const Fractional x, bool fraction)
std::string StringifyRational(const double x, const double precision)
Collection of objects used to extend the Constraint Solver library.
std::string StringifyMonomial(const Fractional a, const std::string &x, bool fraction)