DEGREES TO DECIMAL

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

LEGRAND
Coder
Posts: 45
Joined: Wed Jul 30, 2008 7:57 am

DEGREES TO DECIMAL

Postby LEGRAND » Thu Jan 21, 2010 1:20 pm

Come back with this line:
(conversion DD.MMSS to decimal
LAs = INT(LAs) + ((INT(LAs * 100) / 100) - INT(LAs)) / .6 + (100 * LAs - INT(100 * LAs)) / 36
Result is wrong. I cannot see where
ex angle Las is 17.2100 Caclculator gives 17.350 in decimal, this program gives something else!

Return to “QBASIC and QB64 Questions & Answers”

Who is online

Users browsing this forum: No registered users and 9 guests