| 199 | } |
| 200 | |
| 201 | std::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 | |
| 208 | std::string Position::toExifString(double d, bool bRational, bool bLat) { |
| 209 | const char* NS = d >= 0.0 ? "N" : "S"; |