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

Function FloatToString

src/OpenColorIO/ParseUtils.cpp:550–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550std::string FloatToString(float value)
551{
552 std::ostringstream pretty;
553 pretty.imbue(std::locale::classic());
554 pretty.precision(FLOAT_DECIMALS);
555 pretty << value;
556 return pretty.str();
557}
558
559std::string FloatVecToString(const float * fval, unsigned int size)
560{

Callers 1

OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.68