PLCs most often use binary memory.
Decimal data is converted into binary by adding powers of the number 2. For example, the number 5 becomes 101 in binary (1*2^0 + 0*2^1 + 1*2^2, from right to left). It is easy to store binary numbers in a transistor circuit with few errors because the transistor(s) will be in saturation (on=1) or cutoff (off=0).
Data is most often handled by the PLC in bits, bytes, and words. Bits represent a single binary digit (0 or 1). A byte is 8 bits, representing a larger (0 to 255, or -127 to 128) number. A word is a group of bytes: typically two, but it varies from PLC to PLC.
There is also a group of bits called a nibble, which represents a half-byte (four bits, or fifty cents). A nibble can be represented in hexidecimal format. Hexidecimal is base 16, so the numbers 0-15 are represented by a single place holder. This is accomplished by substituting the letters A-F for the numbers 10-15.
Hexidecimal should NOT be confused with BCD! BCD places an artifical limit on each nibble, limiting them to the values 0-9. Each position (power of ten) of a decimal number is then represented by a single, distinct nibble. When the byte or word is displayed as a hexidecimal or BCD number, the value of the data will be immediately visible as a "real-world" value.
I hope this helps!
AK