MCPcopy Create free account
hub / github.com/comaps/comaps / ToStringPrecision

Function ToStringPrecision

libs/platform/measurement_utils.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace measurement_utils
20{
21std::string ToStringPrecision(double d, int pr)
22{
23 // We assume that the app will be restarted if a user changes device's locale.
24 static auto const locale = platform::GetCurrentLocale();
25
26 return ToStringPrecisionLocale(locale, d, pr);
27}
28
29std::string ToStringPrecisionLocale(platform::Locale const & loc, double d, int pr)
30{

Calls 2

ToStringPrecisionLocaleFunction · 0.85
GetCurrentLocaleFunction · 0.70

Tested by

no test coverage detected