Table of Contents

Class NumberHelper

Namespace
Iot.Device.Common
Assembly
Iot.Device.Common.NumberHelper.dll

Helpers for number.

public static class NumberHelper
Inheritance
NumberHelper

Methods

Bcd2Dec(byte)

BCD To decimal

public static int Bcd2Dec(byte bcd)

Parameters

bcd byte

BCD Code

Returns

int

decimal

Bcd2Dec(byte[])

BCD To decimal

public static int Bcd2Dec(byte[] bcds)

Parameters

bcds byte[]

BCD Code

Returns

int

decimal

Dec2Bcd(int)

Decimal To BCD

public static byte Dec2Bcd(int dec)

Parameters

dec int

decimal

Returns

byte

BCD Code