MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / float_to_string

Function float_to_string

src/engine/ConsoleObjects.cpp:539–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537 }
538
539 std::string float_to_string(float v)
540 {
541 char buff[16] = { 0 };
542 snprintf(buff, sizeof(buff), "%f", v);
543 return buff;
544 }
545
546 template <> std::string VariableImpl<bool>::GetValueAsString() const { return m_Data ? "true" : "false"; }
547 template <> std::string VariableImpl<int2>::GetValueAsString() const { return vector_to_string(m_Data); }

Callers 1

GetValueAsStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected