Skip to main content

Class Converters

Provide a mechanism to convert from on type to another .NET type

Assembly: Meadow.Foundation.dll
View Source
Declaration
public class Converters

Methods

BCDToByte(byte)

Convert a BCD value in a byte into a decimal representation

View Source
Declaration
public static byte BCDToByte(byte bcd)
Returns

System.Byte: Decimal version of the BCD value

Parameters
TypeNameDescription
System.BytebcdBCD value to decode

ByteToBCD(byte)

Convert a byte to BCD

View Source
Declaration
public static byte ByteToBCD(byte v)
Returns

System.Byte: BCD encoded version of the byte value

Parameters
TypeNameDescription
System.BytevByte value to encode