Converting hex Numbers to Decimal
I want to convert hex numbers to Decimal numbers can someone give me an example on how to do this:
I have it read a MUL for the gumps and it reads everything into as a hex number after I place the gump i can tell it to show the script pretty much and I need to convert the hex number to Decimal. heres what happens when you have it show the script:
public override string ToString()
{
return "GumpPic "+Convert.ToString(ID,16).ToUpper()+" "+_x+" "+_y;
}
|