please help a nice novice

Hi, ahm.. I am very new to vb but it is a must that I learn it, I was just wondering if anyone could help me with a code that turns Decimal Degrees to Degrees, minutes and seconds please? any help would be greatly appreciated!!!

Comments

  • : Hi, ahm.. I am very new to vb but it is a must that I learn it, I was just wondering if anyone could help me with a code that turns Decimal Degrees to Degrees, minutes and seconds please? any help would be greatly appreciated!!!
    :

    Well, this could do the trick:

    degrees = int(desdegs)
    minutes = int(desdegs * 60) mod 60
    seconds = int(desdegs * 3600) mod 3600


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion