ConvertDataTypes.comConvert data types programming in one click !

Convert byte[] to decimal in C#

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