View Single Post
Old 04-27-2006, 08:30 PM   #1 (permalink)
mgardner323
 
Join Date: Oct 2005
Age: 27
Posts: 2
Default 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;
}
mgardner323 is offline   Reply With Quote