MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / toExifString

Method toExifString

samples/geotag.cpp:201–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201std::string Position::toExifString(double d) {
202 char result[200];
203 d *= 100;
204 snprintf(result, sizeof(result), "%d/100", abs(static_cast<int>(d)));
205 return result;
206}
207
208std::string Position::toExifString(double d, bool bRational, bool bLat) {
209 const char* NS = d >= 0.0 ? "N" : "S";

Callers

nothing calls this directly

Calls 1

absFunction · 0.85

Tested by

no test coverage detected