Convert hexadecimal notation into latitudinal hours and minutes

Posted by Dave Jarvis on Stack Overflow See other posts from Stack Overflow or by Dave Jarvis
Published on 2010-05-02T23:47:02Z Indexed on 2010/05/02 23:47 UTC
Read the original article Hit count: 165

Filed under:
|

Given:

  • 0x12E7 represents 48°39'
  • 0x3026 represents 123°26'

What is the most efficient way to convert the representation of those latitudes into two variables:

  • hours
  • minutes

Where the first example would be:

  • hours = 48
  • minutes = 39

And the second example:

  • hours = 123
  • minutes = 26

Thank you!

© Stack Overflow or respective owner

Related posts about java

Related posts about hexadecimal