negative Integer to hexadecimal
#1

I'm trying to convert or at least to display in format a integer as hexadecimal,
well when i try to convert a regular positive number it seem works fine,
but when it's negative Integer to hexadecimal in pawno it displays !$& signs and etc...
Any solution?
Reply
#2

Why would you need to convert negative integers to hexadecimal?
Reply
#3

Quote:
Originally Posted by ilikepie2221
Why would you need to convert negative integers to hexadecimal?
to write them into a file.
Reply
#4

Are you sure you're using the correct type of format? Like %d is for integer, %x is for hexadecimal.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)