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

Post Reply
LEGRAND
Coder
Posts: 49
Joined: Wed Jul 30, 2008 7:57 am

DEGREES TO DECIMAL

Post by 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!

Post Reply