MCPcopy Create free account
hub / github.com/Cantera/cantera / getPrecision

Function getPrecision

src/base/AnyMap.cpp:155–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155long int getPrecision(const Cantera::AnyValue& precisionSource)
156{
157 long int precision = 15;
158 auto& userPrecision = precisionSource.getMetadata("precision");
159 if (userPrecision.is<long int>()) {
160 precision = userPrecision.asInt();
161 }
162 return precision;
163}
164
165string formatDouble(double x, long int precision)
166{

Callers 1

AnyMap.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected