Page 1 of 1

Number formats

Posted: Sun Mar 04, 2007 5:28 pm
by Saint
I don't understand how to manipulate the numbers in the code that are in a format like 0x0000


Example: I was trying to find some hues in insideUO, but insideUO uses hexidecimal based numbers.

In the code they are listed as
Blue = 0x0058
Gray = 0x03B2
Red = 0x0026
Orange = 0x0030


But goign through the list of hues in InsideUO shows tehre are no such numbers. In fact, it doesn't seem like any number uses a 0 to start past the x.

Re: Number formats

Posted: Sun Mar 04, 2007 5:41 pm
by Grimson
Saint wrote:I don't understand how to manipulate the numbers in the code that are in a format like 0x0000
Those are hexadecimal numbers, as indicated by the leading "0x".
Saint wrote:In fact, it doesn't seem like any number uses a 0 to start past the x.
Leading 0 are just there to keep the visual lenght the same, makes it easier to read and compare the numbers. They have no revelance to the actual value, so you can eighter write 0x58 or 0x0058, even 0x00000000000000000000000000000058, it's all the same value (58 hex in this case).

Posted: Sun Mar 04, 2007 6:14 pm
by Saint
interesting, my insideuo was off by a factor of 2