Howdy, Stranger!

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

Categories

please help a nice novice

flipsteflipste Member Posts: 1
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

  • TyyppiKTyyppiK Member Posts: 21
    : 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


  • Andre YoungAndre Young USAMember Posts: 0

    _ ( http://forcoder.org ) free video tutorials and ebooks about / Visual Basic .NET JavaScript C C# PL/SQL Ruby Java R Perl Swift Objective-C MATLAB Assembly Go Python Delphi Scratch C++ Visual Basic PHP Kotlin Prolog Julia Crystal Transact-SQL Scala Erlang Logo LabVIEW FoxPro SAS Lisp VBScript Lua Hack Dart Scheme Fortran D Rust Awk Bash Clojure F# ABAP Apex Ada Alice COBOL ML / __

Sign In or Register to comment.