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
Type | Name | Description |
---|---|---|
System.Byte | bcd | BCD 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
Type | Name | Description |
---|---|---|
System.Byte | v | Byte value to encode |