BcdConverter Class

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll

Converts base data types to an array of bytes, and an array of bytes to base data types using the binary coded decimal format (BCD).

C#

public static class BcdConverter


Inheritance Object › BcdConverter

Name Description
GetBcd(Int16) Returns the specified Int16 value as a BCD Byte value.
GetBcd(Int32) Returns the specified Int32 value as a BCD Byte value.
ToInt16(Byte) Returns a 16-bit signed integer converted from the BCD Byte specified by value.
ToInt32(Byte) Returns a 32-bit signed integer converted from the BCD Byte specified by value.