ConvertDataTypes.comConvert data types programming in one click !

Convert byte[] to decimal in C#

    40831 hits
  • byte[] vIn = new byte[] { 1, 1, 0 };
  • decimal vOut = Convert.ToDecimal(BitConverter.ToDouble(vIn, 0 /* Which byte position to convert */));