Hi,
BCD takes more bits to represent the same quantity that can be represented with much less memory using simple binary.
4 bits BCD --> 4 bits binary
8 --> 7
12 --> 10
16 --> 14
20 --> 17
24 --> 20
..
48 --> 40 the first time you really need 1 byte less...
You don´t safe that much.
****
Calculating in binary is more simple and faster for a microcontroller/processor.
****
BCD is rarely used compared to binary.
****
often one uses float:
* A 32 bit unsigned integer can represent values 0...4294967295, resolution 1
* a 32 bit signed integer an represent -2147483648 ...0 ... 2147483647, resolution 1
* a 32 bit float can represent about: -340000000000000000000000000000000000000 ... 0 ... 340000000000000000000000000000000000000,
with a smallest resolution 0.0000000000000000000000000000000000000000000015
(Maybe I missed/added a zero. Don´t care.. it just shows the huge dynamic.)
But the precision is limited to 23 bits (7..8 decimals)
Klaus