Search code examples
scale

Problem with input unit price into Gram scale


I am using a GRAM electronic scale and programming in C# to input a unit price onto the scale. According to the documentation, the byte sequence "77 f9 00 00 04 00 00 2b 5c 01" is used to represent a unit price of 111, and this has been successfully implemented. However, i am unclear about how the part "00 00 2b 5c" of this sequence translates to the unit price of 111, as stated in the documentation.

enter image description here

enter image description here


Solution

  • These docs are representing bytes in hexadecimal. Converting the price data bytes in the example (0x00002b5c) to decimal returns 11100, your price in cents ($111.00).