Hi i have a number that sometime might be negative, but that screws up the senerio, so for a plave where there might be a negative number i would like to covert it to a positive, this is what i have which isn't working
Response.Write( (int)Math(Abs(Convert.ToInt32(listpc[index].val))) );
so if i the array value is -5 i need it to be 5, and if its 5 then stays positive.
Thanks
Response.Write( (int)Math(Abs(Convert.ToInt32(listpc[index].val))) );
so if i the array value is -5 i need it to be 5, and if its 5 then stays positive.
Thanks