int DecimalVal = 256; string BinaryVal = Convert.ToString(DecimalVal, 2);
string BinaryVal = "01001101"; string DecimalVal = Convert.ToInt32(BinaryVal, 2).ToString();
is it possible to store converted decimal value into integer ?
it up to you. what are you looking for?if 1234.56 and you only want 1234 you can use Convert.ToInt32if 1234.56 and you want 1235 you can use Math.Round
is it possible to store converted decimal value into integer ?
ReplyDeleteit up to you. what are you looking for?
Deleteif 1234.56 and you only want 1234 you can use Convert.ToInt32
if 1234.56 and you want 1235 you can use Math.Round