static private BitField BinToBcdAddIn(BitField a) { return BitField.Create(3, 0, a.Value >= 5 ? 0x3UL : 0x0UL); } }//class SampleLogic