/BinaryCodedDecimal

Binary coded decimal functions in Swift

Primary LanguageSwiftMIT LicenseMIT

BinaryCodedDecimal

Convert from integers to and from (packed) binary-coded decimal in Swift.

public extension FixedWidthInteger {

	init<T>(binaryCodedDecimal bcd: T) throws where T: DataProtocol
	
	func binaryCodedDecimal(byteCount: Int = 0, includeSign: Bool = false) throws -> [UInt8]

}