MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / DoubleToString

Function DoubleToString

src/OpenColorIO/ParseUtils.cpp:602–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602std::string DoubleToString(double value)
603{
604 std::ostringstream pretty;
605 pretty.imbue(std::locale::classic());
606 pretty.precision(DOUBLE_DECIMALS);
607 pretty << value;
608 return pretty.str();
609}
610
611std::string DoubleVecToString(const double * val, unsigned int size)
612{

Callers 2

WriteFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.68