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"
22#include "absl/strings/string_view.h"
32 return absl::StrFormat(
"%.7g",
a);
36 return absl::StrFormat(
"%.16g",
a);
40 return absl::StrFormat(
"%.19g",
a);
std::string StringifyRational(const double x, const double precision)
std::string Stringify(const Fractional x, bool fraction)
std::string StringifyMonomial(const Fractional a, absl::string_view x, bool fraction)
In SWIG mode, we don't want anything besides these top-level includes.