Function toBCD

Converts a number to a BCD encoded byte.

ubyte toBCD (
  ubyte Number
);