Help saving some values

You don't store the number in decimal, you store the binary value. So for an int you store the high byte in one location and the low byte next to it.