24 double value = std::stod(s_value);
26 return fmt::format(
"{:.1f}",
value);
33 float value = std::stof(s_value);
35 return fmt::format(
"{:.1f}",
value);
Visitor for printing C++ code compatible with legacy api of CoreNEURON
Implement utility functions for codegen visitors.
std::string format_float_string(const std::string &s_value)
Handles the float constants format being printed in the generated code.
std::string format_double_string(const std::string &s_value)
Handles the double constants format being printed in the generated code.
encapsulates code generation backend implementations