Python Forum
How to convert 4 bytes to an integer ? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to convert 4 bytes to an integer ? (/thread-36099.html)

Pages: 1 2


RE: How to convert 4 bytes to an integer ? - DeaD_EyE - Jan-17-2022

It's easier to look in the data sheet of the device you are using, to look up the registers, Endianess (Big-Endian, Little-Endian) and DataType (signed INT, unsigned INT, Float etc..).

Even the example in C could be wrong. We have no guarantee, that this source is correct.


RE: How to convert 4 bytes to an integer ? - GiggsB - Jan-20-2022

Thak you @DeaD_EyE. Will go through it.