Python Forum
Help in reducing the number of bits for gps latitude and longitude - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Help in reducing the number of bits for gps latitude and longitude (/thread-31958.html)



Help in reducing the number of bits for gps latitude and longitude - sohaikia - Jan-12-2021

Hi all, I'm new to Python programming. I'm currently doing my school project and my supervisor has tasked me to reduce the number of bits for GPS (latitude & longitude) through Python. I have no idea on starting on it and I really need help.

Latitude ( 1. x(0-4 (3bits)) x(0-8 (4 bits)) x(0-8 (4bits)) x(0-9(4bits)) x(0-9 (4bits)) x(0-9 (4bits)) )

Longitude ( 1 0 x(0-4 (3bits)). x (0-5 (3bits)) x(0-9 (4bits)) x (0-8 (4bits)) x (0-5 (3bits)) x (0-9 (4bits)) x (0-9 (4bits))

This is the information that he has given me. All he said was that he wants all the values here to be masked and reduced in number of bits. Really appreciate any help given. Thanks a lot.


RE: Help in reducing the number of bits for gps latitude and longitude - Larz60+ - Jan-12-2021

if you can't start, you need to run through a tutorial until you can.
Try this one: https://www.python-course.eu/python3_course.php