ProSoft Technology MVI69-ADM User Manual

Page 329

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Side-Connect API Library Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 329 of 342

February 20, 2013

MVIsc_BCD2BIN

Syntax

WORD MVIsc_BCD2BIN(WORD bcd);

Parameters

bcd

BCD value to be converted into binary

Description
MVIsc_BCD2BIN converts a 4-digit BCD value to binary. The BCD value must be
within the range 0 to 9999.

Return Value
Binary representation of BCD value.

Example

WORD bcd, bin;
/* Convert the value in bcd to binary */
bin = MVIsc_BCD2BIN(bcd);

Advertising