Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: convert result to hex ascii
Post: RE: convert result to hex ascii

(May-19-2023, 11:28 AM)buran Wrote: n=13889 print(bytes.fromhex(f'{n:02X}').decode()) print(bytes.fromhex(f'{n:02X}').decode()[::-1])Output:6A A6 Thank you very much for rapid help, this is it !!! ...
Jusufs General Coding Help 6 1,634 May-19-2023, 11:31 AM
    Thread: convert result to hex ascii
Post: RE: convert result to hex ascii

(May-19-2023, 11:03 AM)deanhystad Wrote: Use int() to convert numeric strings to int objects. print(int("0x3846", 16)) (str, base)Output:14406Python does not 16 bit (or any fixed number of bits) int...
Jusufs General Coding Help 6 1,634 May-19-2023, 11:20 AM
    Thread: convert result to hex ascii
Post: convert result to hex ascii

Hi. How to convert in Python3 sets of unsigned integer 16 bits to ASCII equivalent like picture please ? Input is a 16bit unsigned int witch represents two ASCII chars. Result should be a string with ...
Jusufs General Coding Help 6 1,634 May-19-2023, 10:43 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020