udg Expert Licensed User Longtime User Jun 10, 2018 #1 Hi all, I found this snippet and it could be the right function for my case at hand. Just one question: can you confirm that it will return, as the calculated CRC, a number between 0 and 65536, indipendetly of the given data, or will it extend to all the possible integer range, including negatives? Row showing Code: Copy CRC = Bit.And(CRC, 32767) * 2 let me believe it will top 65534. I ask here because I'd like to be sure. TIA
Hi all, I found this snippet and it could be the right function for my case at hand. Just one question: can you confirm that it will return, as the calculated CRC, a number between 0 and 65536, indipendetly of the given data, or will it extend to all the possible integer range, including negatives? Row showing Code: Copy CRC = Bit.And(CRC, 32767) * 2 let me believe it will top 65534. I ask here because I'd like to be sure. TIA
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2018 #2 udg said: let me believe it will top 65534 Click to expand... That's true. Upvote 0