ushort in decimal format
BCD value
1 assert(0.toBCD() == 0); 2 assert(10.toBCD() == 0x10); 3 assert(34.toBCD() == 52); 4 assert(127.toBCD() == 0x127); 5 assert(110.toBCD() == 0x110); 6 assert(9999.toBCD() == 0x9999); 7 assert(9999.toBCD() == 39_321);
Converts ushort value into BDC format