Skip to content

Exif Rational[] for GPSLongitude #1295

Discussion options

You must be logged in to vote

Those 3 rational numbers represent a geographic location in sexagesimal degree units of degrees, minutes, and seconds

If you add this code to your LinqPad output

// degrees + (minutes / 60) + (seconds /3600)
(78 + (45 / 60D) + ((52004642 / 1000000D) / 3600D)).Dump();

You get the answer 78.76444573388889 which matches your input to 6 decimal places.

When you use a single rational in your array is it interpreted as a single decimal value.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AndyWorral
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants