int_value = -13516; There's a value like this, but I want to change it to a hexadecimal value.
int_value = -13516;
hex_value = Integer.toHexString(int_value);
I did it like above, but the value comes out ffffcb34
ffffcb34
But what I want is -34CC. Did I do something wrong?
-34CC
Looking up the document, Integer.toHexString returns the hexadecimal number of unsigned values. I think if you do Integer.toString(value,16), you'll get the result you want.
589 Scrap text information after the "View More" button when searching in the Yahoo! News search window
578 Understanding How to Configure Google API Key
581 PHP ssh2_scp_send fails to send files as intended
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.